UNPKG

brainfuck2wasm

Version:

Binaryen based compiler from brainfuck to WebAssembly (Wasm).

30 lines (19 loc) 489 B
# Brainfuck to WebAssembly Compiler [Binaryen](https://github.com/WebAssembly/binaryen) based compiler from brainfuck to WebAssembly (Wasm). ## Usage ```sh # install: $ npm install brainfuck2wasm -g # from source code: $ npm install $ npm link # write some brainfuck code: $ echo ">,[>,]<[.<]" > reverse.b # compile it: $ brainfuck2wasm reverse.b # run wasm: $ node index.js reverse.wasm ABCD DCBA ``` ## License [MIT](https://github.com/ttulka/brainfuck2wasm/blob/main/LICENSE)