jsy-node

February 25, 2023 ยท View on GitHub

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