brainfuck-tiny

1.0.0 • Public • Published

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:

  1. module.exports=
  2. 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

Package Sidebar

Install

npm i brainfuck-tiny

Weekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

1.33 kB

Total Files

3

Last publish

Collaborators

  • noobiedev