Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@utatti/mitty

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@utatti/mitty

A Brain*uck to WASM compiler

latest
Source
npmnpm
Version
0.4.0
Version published
Maintainers
1
Created
Source

Mitty

Build Status

Mitty is a Brain*uck to WASM compiler and runtime.

Demo

https://utatti.github.io/mitty/

How to use

Install:

npm i -g @utatti/mitty

Prepare a Brain*uck code:

>++++++++[-<+++++++++>]<.>>+>-[+]++
>++>+++[>[->+++<<+++>]<<]>-----.>->
+++..+++.>-.<<+[>[+>+]>>]<---------
-----.>>.+++.------.--------.>+.>+.

Run mitty:

# JavaScript interpreter
mitty interpret hello.b

# WASM compiler
mitty compile hello.b hello.wasm
mitty exec hello.wasm

Requirement

Node.js >= 12 is needed to run ES Modules natively.

Test cases

The test cases in the /test directory are copied from the following repository. They have their own licensing.

References

License

MIT

Keywords

brainfuck

FAQs

Package last updated on 10 May 2019

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