Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bfts

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

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)

  • 0.1.1
  • unpublished
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

bfts

CI npm version

Type-Level Brainfuck interpreter written in TypeScript 4.1.

Prerequirement

  • TypeScript >= 4.1

If you use it as is, it will immediately exceed the recursion limit. You can force the recursion limit to be disabled in order to run a larger program.

$ sed -i -e 's/instantiationDepth === 50 || instantiationCount >= 5000000/false/' node_modules/typescript/lib/{tsc,tsserver}.js

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

Package last updated on 10 Nov 2020

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc