Registry / thebrain

thebrain

JSON →
library1.0.13jsnpmunverified

theBrain is a brainf**k transpiler that converts brainf**k code into JavaScript (specifically Node.js). It reads a .bf file and outputs an equivalent JavaScript file. Version 1.0.13 is the latest and only stable version. The package is minimal with no active development. Differentiator: simple CLI tool for brainf**k to JS transpilation.

npm install thebrain
INSTALL
IMPORT
SIG · THEBRAIN
T
thebrain
javascriptv1.0.13
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.

transpile
import { transpile } from 'thebrain'
const transpile = require('thebrain').transpile
ESM-only; no CommonJS support.

Create a brainf**k Hello World file, transpile to JS, and run it.

echo "++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>.>---.+++++++..+++.>>.<-.<.+++.------.--------.>>+.>++." > helloworld.bf npx thebrain --input=helloworld.bf --output=hello.js node hello.js
thebrain --version
Debug
Known issues
gotchaThe CLI expects arguments in --key=value format, not positional arguments.
fix
Use --input and --output flags explicitly.
affects: >=1.0
Errors
Common errors & fixes
Error: Cannot find module 'thebrain'
Package not installed globally or locally.
fix
Install with npm install -g thebrain or npx thebrain
Upgrade
Version history
1.0.13latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
thebrain — npm install thebrain · libregistry