jsy-transpile
JSY is an indented (offside) JavaScript dialect. We believe indentation is better at describing code blocks.
This is an offside (indention) JSY syntax transpiler to standard JavaScript with zero dependencies — e.g. No Babel, no Acorn!
Please see JSY language docs for details on the JSY dialect.
Use from the command line
Ensure you are using Node 10.x or later.
Install globally with npm install -g jsy-transpile
Transpile a JSY file with npx jsy-transpile test.jsy > test.js
Run a JSY file with npx jsy-node test.jsy
– see jsy-node
Use from Bundlers
- via
npm init jsy
– see npm-create-jsy - via Rollup with rollup-plugin-jsy-lite
- via Babel with babel-plugin-jsy-lite
Use directly from HTML
...
<script type='module' src='https://cdn.jsdelivr.net/npm/jsy-transpile/esm/jsy-script.min.js'></script>
...
<jsy-script src='./example.jsy'></jsy-script>
...