@susisu/typefuck
v0.5.1
Published
Type-level Brainfuck interpreter in TypeScript
Downloads
22
Readme
@susisu/typefuck
Type-level Brainfuck interpreter in TypeScript
# npm
npm i --save @susisu/typefuck
# yarn
yarn add @susisu/typefuck
# pnpm
pnpm add @susisu/typefuck
Example
import type { Brainfuck } from "@susisu/typefuck";
type Program = ">,[>,]<[.<]";
type Input = "Hello, world!";
type Output = Brainfuck<Program, Input>; // = "!dlrow ,olleH"