{"id":26974,"library":"f2js-cli","title":"f2js-cli","description":"Command-line interface for the Forth-to-JavaScript transpiler (f2js). Stable version 0.0.4. Minimal activity; likely experimental or personal. Converts Forth code into JavaScript for execution in Node.js or the browser. Differentiated by targeting JavaScript as a backend for Forth.","status":"active","version":"0.0.4","language":"javascript","source_language":"en","source_url":"https://github.com/figtaiwan/f2js-cli","tags":["javascript","forth","transpiler"],"install":[{"cmd":"npm install f2js-cli","lang":"bash","label":"npm"},{"cmd":"yarn add f2js-cli","lang":"bash","label":"yarn"},{"cmd":"pnpm add f2js-cli","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"This is a CLI tool, not a library. Use via command line: f2js <file>.fth > output.js","wrong":"const f2js = require('f2js-cli')","symbol":"default","correct":"npm install -g f2js-cli"}],"quickstart":{"code":"npm install -g f2js-cli\ncat > hello.fth << 'EOF'\n: hello .\" Hello, Forth!\" ;\nhello\nEOF\nf2js hello.fth","lang":"bash","description":"Installs the CLI globally, creates a simple Forth file, and transpiles it to JavaScript."},"warnings":[{"fix":"Evaluate if project is maintained before relying on it.","message":"Package version 0.0.4 is very early; no releases since initial publish.","severity":"deprecated","affected_versions":">=0.0.0"},{"fix":"Check documentation or source for supported features.","message":"The CLI may not support all Forth standards; test thoroughly.","severity":"gotcha","affected_versions":">=0.0.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Use as command: f2js [options] <file>","cause":"Attempting to require() a CLI package that is meant to be run globally.","error":"Error: Cannot find module 'f2js-cli'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}