Skip to content

NodeJS loader for offside (indention) JSY syntax transpiler to standard JavaScript

License

Notifications You must be signed in to change notification settings

jsy-lang/jsy-nodejs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@jsy-lang/nodejs

JSY from NodeJS using --loader @jsy-lang/nodejs

Install

$ npm install @jsy-lang/nodejs @jsy-lang/jsy

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

Use

Start with some JSY, say...

$ cat > some-demo.jsy << EOF

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

EOF

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

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

Adopt

Using a jsy-node alias:

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

Or just straight upgrading NodeJS with JSY superpowers via NODE_OPTIONS:

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

License

BSD-2-Clause License

About

NodeJS loader for offside (indention) JSY syntax transpiler to standard JavaScript

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published