Drop-in Tweego Replacement
Reads the same .twee, .tw, .css, .js, font, and media files. Respects TWEEGO_PATH. Same output.
A complete reimplementation of Tweego. Zero runtime dependencies. Node.js 22+.
# 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:
import { compile } from '@rohal12/twee-ts';
const result = await compile({
sources: ['src/'],
tagAliases: { library: 'script' },
});