init-node-ts
v1.1.7
Published
Minimal CLI to bootstrap Node.js + TypeScript projects quickly
Maintainers
Readme
init-node-ts
A minimal CLI tool to quickly bootstrap a Node.js + TypeScript project with sensible defaults.
Features
- Initializes a new
package.jsonwith common scripts - Installs
typescriptand@types/nodeas dev dependencies - Creates a
tsconfig.jsonconfigured for Node.js projects - Sets up a
src/index.tsstarter file - Adds build and start scripts for easy development
Usage
Run the CLI anywhere to create a new project folder setup:
npx init-node-tsor if installed globally:
init-node-tsThis will:
- Create
package.json(if missing) - Install required dev dependencies
- Create
tsconfig.json - Create
src/index.ts - Add useful scripts (
build,start) topackage.json
Getting Started
- Run the CLI in an empty folder (or create a new folder):
mkdir my-new-project
cd my-new-project
npx init-node-ts- Build the project:
npm run build- Run the project:
npm startContributing
Contributions are welcome! Feel free to open issues or submit pull requests.
License
MIT License
