Skip to content

simonorzel26/init-npm-pkg

Repository files navigation

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-pkg

CLI Output

CLI Setup

Generated Structure

Project 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •