The Z transpiler/interpreter
A transpiled language that can be evaluated as a script (for testing) or transpiled to human-readable JS (for production code). Z supports modules, functions, closure, error handling, and many more features you would expect from a modern language. Is it ready for production code? I'd wait a few months before that.
The Z Compiler (ZComp) can be installed with:
$ npm install -g @zlanguage/zcomp
Then, you should install the zstdlib (a mix of a runtime and standard library):
$ npm install -g @zlanguage/zstdlib
globby, which is essential to the Z Compiler:
$ npm install -g globby
Finally, navigate to the directory you're using Z in, and type:
$ npm link @zlanguage/zstdlib
However, if you are using Z for a web app (or npm package), and want to deploy it to the world, instead run the following two commands:
$ npm init $ npm install @zlanguage/zstdlib
This installs the Z standard library locally in just the paackage you need it for.
Transpile Z Code:
$ zcomp transpile [path of Z to transpile] [path of where to output the transpiled JS]
Run Z Code:
$ zcomp run [path of Z to run]
Transpile one directory to another:
$ zcomp dirt [path of directory with Z] [path of "out" directory]
Watch a file for changes, and transpile when the file is changed:
$ zcomp watch [path of Z to watch and transpile] [path of where to output the transpiled JS]
The docs are on the offical Z Website.