init-npm-pkg
v2.0.0
Published
A modern TypeScript package generator with multiple build tools, linters, and test frameworks
Maintainers
Readme
init-npm-pkg
Instantly create a fully configured npm package with GitHub Actions, testing, and modern tooling. Follows Matt Pocock's latest best practices for npm packages.
Usage
npx init-npm-pkgCLI Output
Generated Structure
What You Get
- Bun or npm - Choose your package manager
- Biome or ESLint - Modern linting and formatting
- Vitest or Bun Test - Fast testing frameworks
- GitHub Actions - Automated CI/CD
- Changesets - Semantic versioning
- TypeScript - Full type safety
- Git setup - Optional repository initialization
Example Package
This tool was used to create antiemdash - a TypeScript utility to remove or replace em dashes in strings, with built-in support for wrapping Vercel AI SDK functions.
The package demonstrates the full setup including:
- TypeScript configuration
- GitHub Actions for CI/CD
- Comprehensive testing with Vitest
- Modern linting with Biome
- Semantic versioning with Changesets
Options
| Setting | Options | |---------|---------| | Package Manager | Bun, npm | | Linter | Biome, ESLint + Prettier | | Testing | Vitest, Bun Test, None | | Git | Initialize repository (optional) |
License
MIT
