1.2.2 • Published 4 years ago
bfk v1.2.2
BFK (Brain F*ck compiler)
A Brainfuck compiler written in node.js!
Installation
Install globally
npm install -g bfkLocal install
npm install bfkUsage
I prefer using global packages. Why?
- It's much easier
 - You can use it whenever you want
 
Global usage
bfk <your file>Local usage
const bfk = require("bfk")
bfk.compile("Path to Brain f*ck program")Examples
Let's assume u have hello world program.
helloWorld.bf
With "Hello World!" code inside
++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.Everything you have to do, is to write this into your terminal
bfk helloworldThe output should be
H
E
L
L
O
W
O
R
L
D
!If you want to create a continous string just add -str after command
bfk helloworld -strThe output should be
HELLO WORLD!Notice that you don't even have to specify the file extension.