Skip to content

maxhallinan/brunfaick

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

brunfaick

A Brainfuck interpreter implemented in JavaScript.

Install

$ npm install --save brunfaick

Usage

const brunfaick = require('brunfaick');

brunfaick('++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.');
//=> 'Hello World!'

API

brunfaick(program, input)

program

Type: string

A string of Brainfuck commands.

input

Type: string
Default: undefined

Input provided to program during execution.

CLI

$ npm install --global brunfaick
$ brunfaick --help
  Usage
    $ brunfaick [program]

  Options
    -f, --file
      Path to a Brainfuck file.

    -i, --input
      Input provided to [program] during execution.

  Examples
    $ brunfaick '++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.'
      Hello World!

    $ brunfaick --file=hello-world.b
      Hello World!

    $ brunfaick --file=wc.b --input='foo bar baz'
      0 3 11

License

MIT © Max Hallinan

About

A Brainfuck interpeter implemented in JavaScript.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published