Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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
  • npm
  • Socket score

Version published
Weekly downloads
1
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?

  1. It's much easier
  2. 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

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc