A VM for FunctionalScript.
- Rust.
- For Windows, you may need Visual C++. You can get either
- by installing Microsoft C++ Build Tools,
- or adding Desktop development with C++ to Visual Studio.
To install the latest stable version from crates.io, run:
cargo install nanvm
To install the current version from the main
branch, run:
cargo install --git https://github.com/functionalscript/nanvm
To unininstall the nanvm
, run:
cargo uninstall nanvm
Converting DJS module into one file.
nanvm INPUT_FILE OUTPUT_FILE
From JSON to JSON:
nanvm notes/sample.json sample.json
From ESM module to JSON:
nanvm nanvm-lib/test/test_cache_b.d.mjs sample.json
From CommonJS module to ESM module
nanvm nanvm-lib/test/test_import_main.d.cjs sample.d.mjs