Scaffold a production-ready TypeScript package in seconds.
npx @kumarad9/create-package my-lib
npm init @kumarad9/package my-libOr with options:
npx @kumarad9/create-package my-lib \
--name my-lib \
--description "My awesome library" \
--license MIT \
--github-user kumarad9- TypeScript + Rollup (CJS, ESM, UMD)
- Vitest (testing)
- ESLint + Prettier
- Husky + commitlint + czg (commit workflow)
- Typedoc (API docs)
- GitHub Actions CI + Release workflows
- Semantic-release (auto versioning & publishing)
| Option | Description | Default |
|---|---|---|
--name |
Package name | Directory name |
--description |
Package description | Empty |
--license |
License | MIT |
--github-user |
GitHub username for badges | Empty |
--no-git |
Skip git init | false |
--no-install |
Skip npm install | false |
- Node.js >= 18
- Git (optional, for husky hooks)
MIT