brainfuck-tiny
v1.0.0
Published
Possibly the smallest brainfuck interpreter to be made as a package in nodejs
Downloads
2
Maintainers
Readme
brainfuck-tiny
Possibly the smallest brainfuck interpreter on npm
Side notes are at the end of this file
Installing
npm i brainfuck-tiny
Usage
let bf = require('brainfuck-tiny')
console.log(bf('>++++++++[<+++++++++>-]<.>++++[<+++++++>-]<+.+++++++..+++.>>++++++[<+++++++>-]<++++.')) // Hello.
Weight (index.js): 245 bytes
The original prototype's weight was 222 bytes, but the size increased because:
module.exports=
- Project was using function arguments as variables (which in public case might cause some problems)
The weight is also increased over 245 bytes because of the files:
- readme.md
- package.json
So if you want the project to stay as tiny as possible, delete the file: node_modules/brainfuck-tiny/readme.md