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 Nov 15, 2023

#114 in Programming languages

GPL-3.0-or-later

370KB
11K SLoC

NaNVM

A VM for FunctionalScript.

Prerequisites

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

Dependencies