Skip to content

Latest commit

 

History

History
35 lines (29 loc) · 1.56 KB

File metadata and controls

35 lines (29 loc) · 1.56 KB

brainfuckify

A naive ascii text to brainfuck compiler

Why?

Typing stuff so that it prints normally in BF is a huge pain when done manually.

Installation

npm install brainfuckify

Usage

const brainfuckify = require('brainfuckify');

brainfuckify('Hello, world!');
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.>
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.>
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.>
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.>
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.>
// ++++++++++++++++++++++++++++++++++++++++++++.>
// ++++++++++++++++++++++++++++++++.>
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.>
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.>
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.>
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.>
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.>
// +++++++++++++++++++++++++++++++++.

Also see test folder for an example.

License?

MIT