Socket
Socket
Sign inDemoInstall

bfts

Package Overview
Dependencies
0
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    bfts

[![CI](https://github.com/dqn/bfts/workflows/CI/badge.svg)](https://github.com/dqn/bfts/actions) [![npm version](https://img.shields.io/npm/v/bfts.svg)](https://www.npmjs.com/package/bfts)


Version published
Maintainers
1
Install size
26.5 kB
Created

Readme

Source

bfts

CI npm version

Type-level Brainfuck interpreter.

Playground

Installation

Using npm:

$ npm install bfts

Using yarn:

$ yarn add bfts

Example

import type { Interpret } from "bfts";

type Result1 = Interpret<"++++[>+++++<-]>--.">;
// type Result1 = "\u0012"

type Result2 = Interpret<"+++++++++[>++++++++>+++++++++++>+++>+<<<<-]>.>++.+++++++..+++.>+++++.<<+++++++++++++++.>.+++.------.--------.>+.>+.">;
// type Result2 = "Hello World!\n"

// With input
type Result3 = Interpret<",+>,+>,+<<.>.>.", "ABC">;
// type Result3 = "BCD"

License

MIT

FAQs

Last updated on 19 Jan 2021

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