A brainfuck minifier written in JavaScript, version 0.1.1. It reduces brainfuck code by removing non-command characters and optimizing redundant sequences. Supports multiple environments including browsers, Node.js, Narwhal, RingoJS, Rhino, and AMD loaders. Comes with a CLI binary. Tested on Chrome 27, Firefox 3-19, Safari 4-6, Opera 10-12, IE 6-10, Node.js v0.10.0, Narwhal 0.3.2, RingoJS 0.8-0.9, and Rhino 1.7RC4.
npm install brnfckrNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates importing brnfckr and minifying a simple brainfuck program by removing non-command characters.
Use dynamic import() or CommonJS require. For Node.js, ensure type is not ESM.
Use `const brnfckr = require('brnfckr');`Understand that non-command characters are stripped; do not rely on them being preserved.
Create a .d.ts file: declare module 'brnfckr' { export function minify(code: string): string; }Run `npm install brnfckr` to install the package.
Use `const brnfckr = require('brnfckr');` then `brnfckr.minify(code);`Use CommonJS require() instead of import.
No dependency data recorded yet.