Skip to content

susisu/typefuck

Repository files navigation

@susisu/typefuck

CI

Type-level Brainfuck interpreter in TypeScript

# npm
npm i --save @susisu/typefuck
# yarn
yarn add @susisu/typefuck
# pnpm
pnpm add @susisu/typefuck

Example

Playground

import type { Brainfuck } from "@susisu/typefuck";

type Program = ">,[>,]<[.<]";
type Input = "Hello, world!";
type Output = Brainfuck<Program, Input>; // = "!dlrow ,olleH"

License

MIT License

Author

Susisu (GitHub, Twitter)