Skip to content

twee-tsTypeScript Twee-to-HTML Compiler

A complete reimplementation of Tweego. Zero runtime dependencies. Node.js 22+.

Quick Example

sh
# Install
npm install @rohal12/twee-ts

# Initialize a project
npx @rohal12/twee-ts --init

# Compile
npx @rohal12/twee-ts -o story.html src/

Or use the programmatic API:

typescript
import { compile } from '@rohal12/twee-ts';

const result = await compile({
  sources: ['src/'],
  tagAliases: { library: 'script' },
});

Released under the Unlicense.