Registry / devops / f2js-cli

f2js-cli

JSON →
library0.0.4jsnpmunverified

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.

npm install f2js-cli
INSTALL
IMPORT
SIG · F2JS-CLI
F
f2js-cli
devopsjavascriptv0.0.4
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default
npm install -g f2js-cli
const f2js = require('f2js-cli')
This is a CLI tool, not a library. Use via command line: f2js <file>.fth > output.js

Installs the CLI globally, creates a simple Forth file, and transpiles it to JavaScript.

npm install -g f2js-cli cat > hello.fth << 'EOF' : hello ." Hello, Forth!" ; hello EOF f2js hello.fth
f2js --version
Debug
Known issues
deprecatedPackage version 0.0.4 is very early; no releases since initial publish.
fix
Evaluate if project is maintained before relying on it.
affects: >=0.0.0
gotchaThe CLI may not support all Forth standards; test thoroughly.
fix
Check documentation or source for supported features.
affects: >=0.0.0
Errors
Common errors & fixes
Error: Cannot find module 'f2js-cli'
Attempting to require() a CLI package that is meant to be run globally.
fix
Use as command: f2js [options] <file>
Upgrade
Version history
0.0.4latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
f2js-cli — npm install f2js-cli · libregistry