8 releases
0.1.1 | Dec 14, 2024 |
---|---|
0.1.0 | Jul 18, 2024 |
0.0.5 | May 8, 2024 |
0.0.4 | Mar 14, 2024 |
0.0.0 | Dec 3, 2023 |
#856 in Rust patterns
64 downloads per month
Used in 3 crates
(2 directly)
370KB
11K
SLoC
NaNVM
A VM for FunctionalScript.
Prerequisites
- 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.
Installation
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
Command Line Interface
Converting DJS module into one file.
nanvm INPUT_FILE OUTPUT_FILE
Examples
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