Skip to content

NPM Package TemplateModern TypeScript Package Starter

Everything you need to build, test, document, and publish high-quality npm packages.

Quick Start โ€‹

bash
# Clone the template
git clone https://github.com/MoaazKHASSAWNEH/NPM-Package.git my-package
cd my-package

# Initialize your package
node scripts/init-template.mjs

# Start developing
pnpm dev

What's Included โ€‹

CategoryTools
Buildtsup (ESM + CJS + types)
TestVitest with V8 coverage
LintESLint 9 flat config + Prettier
DocumentationVitePress + TypeDoc
Git HooksHusky + lint-staged
CI/CDGitHub Actions
ReleasesChangesets

Next Steps โ€‹

Released under the MIT License.