Standard TypeScript package and CLI template for CodePawl projects.
Early-stage. APIs may change. Use as a starting point for new CodePawl libraries and CLIs.
- TypeScript, ESM, Node.js >= 20
tsupfor dual library + CLI bundlesvitestfor testsbiomefor lint + format- GitHub Actions CI (Node 20 + 22)
- Dependabot for npm and Actions
- Scripts for repo configuration and branch ruleset
pnpm add @codepawl/template
# or, as a global CLI
pnpm add -g @codepawl/templatecodepawl-template # Hello, world!
codepawl-template Alice # Hello, Alice!
codepawl-template --help
codepawl-template --versionimport { VERSION, hello } from "@codepawl/template";
console.log(VERSION); // "0.0.0"
console.log(hello()); // "Hello, world!"
console.log(hello("CodePawl")); // "Hello, CodePawl!"pnpm install
pnpm dev # tsup --watch
pnpm typecheck
pnpm lint
pnpm formatpnpm test # one-shot
pnpm test:watch # watch modepnpm build # emits dist/index.js + dist/cli.js + .d.tspnpm check runs typecheck + lint + format-check together — the same gate CI enforces.
See CHANGELOG.md.
MIT © An Nguyen