Version 1.4.2. A simple Scheme-to-JavaScript transpiler that converts Scheme expressions into JavaScript code. It supports basic Lisp constructs such as define, lambda, if, binary operations, and boolean expressions. The package includes a CLI tool (s2j) and a Node.js API. It features optional polyfill for pairs (cons, car, cdr). The library is lightweight and designed for educational purposes or small Scheme snippets. Release cadence is low, with no recent updates on GitHub.
npm install scheme2jsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Transpile a Scheme factorial function to JavaScript using the API.
Use only the documented constructs; refer to the README for supported features.
Use the CLI without --pairs if you don't need pairs, or scope the polyfill manually.
Manually replace `var` with `let` or `const` after transpilation.
Use ESM import syntax if your environment supports it.
Use `const s2j = require('scheme2js').default` or use ES module import.Ensure the input is a string: `s2j(String(code))`.
Ensure `--pairs` is used at compile time and the resulting JavaScript file includes the polyfill at the top.
No dependency data recorded yet.