Skip to content
This repository has been archived by the owner on Feb 25, 2023. It is now read-only.

Latest commit

 

History

History
33 lines (21 loc) · 738 Bytes

README.md

File metadata and controls

33 lines (21 loc) · 738 Bytes

jsy-node

Deprecated -- see jjsy-lang/jsy-nodejs that uses NodeJS experimental loader mechanism.

Register runtime require handler for Offside (indention) JSY syntax transpiler to standard JavaScript.

Please see JSY language docs for details on the JSY dialect.

Use from the command line

> jsy-node ./examples/hello.jsy
Hello JSY world!

## Equivalent to:
> node -r jsy-node ./examples/hello.jsy
Hello JSY world!

Use from other Node sources

require('jsy-node')

require('./examples/hello.jsy')

Use with Mocha

$ mocha --require jsy-node/all some-unittest.jsy