About the project
- Zero overhead. js2js will never slow you down. The compiled code has exactly the same performance as the original input.
- Cross-platform. js2js-powered code supports all kinds of stationary and mobile devices and Web browsers. Even if you develop for Netscape 2.0, we've got you covered.
For first-time usage, fetch the dependencies:
$ cd js2js $ npm install
To compile your code, use the following command:
node js2.js -i <input_file_or_directory> -o <output_file_or_directory>
Interesting fact: you can compile the code of js2js with js2js and everything will work as expected. Check this out:
>node js2.js -i js2.js -o js2.compiled.js -v Welcome to js2js compiler. Compiling js2.js... Output is written to: js2.compiled.js Done!
--decompile: decompile js2js-powered JS back to original JS.
--force: overwrite existing files in the destination location.
--verbose: toggle detailed output.
How can I contribute?