Socket
Book a DemoInstallSign in
Socket

bfk

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bfk

Global Brain Fuck compiler written in node.js!

1.2.2
latest
Source
npmnpm
Version published
Weekly downloads
10
900%
Maintainers
1
Weekly downloads
 
Created
Source

BFK (Brain F*ck compiler)

A Brainfuck compiler written in node.js!

Installation

Install globally

npm install -g bfk

Local install

npm install bfk

Usage

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 helloworld

The 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 -str

The output should be

HELLO WORLD!

Notice that you don't even have to specify the file extension.

Keywords

brainfuck

FAQs

Package last updated on 31 Jul 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.