Node.bf is a JavaScript transpiler that compiles Node.js modules written in Brainfuck, an esoteric Turing-complete language using only characters +-<>[].,. Version 0.1.0 is the current stable release; the project appears to be in early development with no frequent updates. Unlike other Brainfuck interpreters or compilers, node.bf integrates with Node.js module system, allowing .bf files to be compiled into JavaScript modules that export a function. It uses Jison for parser generation and supports Webpack loaders for direct import of .bf files.
npm install node.bfNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to compile a Brainfuck 'Hello World' program and use the resulting function with Node.js modules.
Check documentation for the exact API signature. Use a callback wrapper or check if .compile() returns a Promise.
Either compile .bf files via API first or configure Webpack with node-bf loader.
Use compile and create the module wrapper yourself, or check exports list.
Run 'npm install node.bf' and ensure it's in package.json dependencies.
Use node.bf compiler to transpile .bf file to .js before running.
Use correct import: import { compile } from 'node.bf' or const compile = require('node.bf').compile.Ensure the function receives a string input for the Brainfuck program's input tape.