Registry / devops / wort
library0.1.8jsnpmunverified

Wort is a simple concatenative programming language that compiles to JavaScript. Version 0.1.8 is the latest stable release. The project appears to be in early development with infrequent updates. It provides a command-line tool to transpile .wort files into Node.js modules. Unlike other concatenative languages like Forth, Wort targets JavaScript runtime, making it accessible for web development. Its key differentiator is its minimalistic syntax and ease of integration with JavaScript via transpilation.

npm install wort
INSTALL
IMPORT
SIG · WORT
W
wort
devopsjavascriptv0.1.8
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.

wort
✓ import wort from 'wort'
✗ const wort = require('wort')
Primary API is the CLI; API for programmatic use is undocumented.
compile
✓ import { compile } from 'wort'
✗ const { compile } = require('wort')
compile is a named export; verify existence as API is unstable.
File
✓ import { File } from 'wort'
✗ require('wort').File
File is a named export; may not be part of the public API.

Shows basic usage: install wort, create a simple program, transpile, and run with node.

// Install globally or locally npm install wort // Create a file 'helloworld.wort' echo 'main: "Hello, World!" printz ;' > helloworld.wort // Transpile wort helloworld.wort // Run the output node helloworld.wort.js // Expected output: Hello, World!
wort --version
Debug
Known issues
deprecatedThe CLI uses global install; npm recommends npx.
fix
Use npx wort instead of global install.
affects: all
gotchaOutput file extension is .wort.js; ensure your loader understands it.
fix
Use explicit .js extension or rename.
affects: all
gotchaBrowserify is suggested but not officially tested.
fix
Test thoroughly when targeting browsers.
affects: all
Errors
Common errors & fixes
wort: command not found
Not installed globally or not in PATH.
fix
Install globally: npm install -g wort, or use npx wort.
SyntaxError: Unexpected token
Wort syntax error in source file.
fix
Check wort syntax: statements end with semicolon, definitions use colon.
Upgrade
Version history
0.1.8latest on npm
Audit
Dependencies
noderequiredRuntime required to run the compiler and transpiled output
Agent activity
11 hits · last 30 days
node
10
Resources
wort — npm install wort · libregistry