Socket
Socket
Sign inDemoInstall

bf2js

Package Overview
Dependencies
2
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    bf2js

brainf*ck to javascript compiler


Version published
Maintainers
1
Install size
114 kB
Created

Readme

Source

bf2js

bf2js is a AltJS . It translate brainf*ck to JS.

What is new?

bf2js supports source-map.

so, you can debug brainf*ck on browser!

install

$ npm install -g bf2js

usage

translate

$ bf2js sample/a.bf

translate and print

$ bf2js -p sample/a.bf

translate to html

$ bf2js -h sample/a.bf
$ static &
$ open http://localhost:8080/a.html

translate with source-map

$ bf2js -m sample/a.bf

run

$ bf2js -r a.bf

help

$ bf2js --help

  Usage: bf2js [options] <filename>

  Options:

    -h, --help     output usage information
    -V, --version  output the version number
    -r, --run      Running brainf*ck
    -p, --print    Print generated source to stdout
    -m, --map      Append source-map to generated code
    -h, --html     Generate html

contributing

  1. fork it (http://github.com/MakeNowJust/bf2js)
  2. create your feature branch (git checkout -b my-new-feature)
  3. commit your changes (git commit -am 'Add my new feature')
  4. push to the branch (git push origin my-new-feature)
  5. create new Pull Request

license

bf2js is released under the BSD-2-Clause.

Copyright 2014, TSUYUSATO Kitsune make.just.on@gmail.com

Keywords

FAQs

Last updated on 19 Sep 2015

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc