@jsy-lang/nodejs

0.0.9 • Public • Published

@jsy-lang/nodejs

Start with some JSY, say...

$ cat > demo.jsy << EOF

console.log @
    "Hello JSY world!"
    @{}
        jsy: 'indented'
        wisp: 'inspiration'

EOF

The use the --experimental-loader feature with @jsy-lang/nodejs:

$ node --loader @jsy-lang/nodejs demo.jsy
Hello JSY world! { jsy: 'indented', wisp: 'inspiration' }

Using a jsy-node alias:

$ alias jsy-node="node --loader @jsy-lang/nodejs"
$ jsy-node demo.jsy
Hello JSY world! { jsy: 'indented', wisp: 'inspiration' }

Or just straight upgrading NodeJS with JSY superpowers via NODE_OPTIONS:

$ export NODE_OPTIONS="--enable-source-maps --loader @jsy-lang/nodejs"
$ node demo.jsy
Hello JSY world! { jsy: 'indented', wisp: 'inspiration' }

Install

$ npm install @jsy-lang/nodejs

Note that global install does not work with loaders. (e.g. npm install -g does not work).

Install

npm i @jsy-lang/nodejs

DownloadsWeekly Downloads

1

Version

0.0.9

License

BSD-2-Clause

Unpacked Size

5.75 kB

Total Files

7

Last publish

Collaborators

  • shanewholloway