{"library":"scheme2js","title":"scheme2js","description":"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.","language":"javascript","status":"active","last_verified":"Fri May 01","install":{"commands":["npm install scheme2js"],"cli":{"name":"s2j","version":null}},"imports":["import s2j from 'scheme2js'","import s2j from 'scheme2js'","import s2j from 'scheme2js'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import s2j from 'scheme2js';\n\nconst schemeCode = `\n  (define (factorial n)\n    (if (eq n 0)\n        1\n        (* n (factorial (- n 1))))\n`;\n\nconst jsCode = s2j(schemeCode);\nconsole.log(jsCode);\n// Output:\n// function factorial(n) {\n//   return eq(n, 0) ? 1 : n * factorial(n - 1);\n// }","lang":"typescript","description":"Transpile a Scheme factorial function to JavaScript using the API.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}