NodeTSP is a CLI scaffolding tool that automates the setup of Node.js projects with TypeScript, ESLint, Prettier, and Git. Spend less time on boilerplate and more time writing code.
- Full ESM & modern TypeScript support
- Pre-configured ESLint & Prettier for consistent style
- Automatic Git repository initialization
- Customizable folder structure
- One-command project scaffolding
npm install -g nodetsp
# or
pnpm add -g nodetsp
# Create a new project to start the cli prompts
nodetsp init
# Choose pnpm instead of npm
nodetsp init my-project --pm pnpm
# Use CommonJS and create extra folders
nodetsp init my-project \
--ms cjs \
--fd utils,types \
--git
# Non-interactive (all options in one go)
nodetsp init my-project \
--pm pnpm \
--ms esm \
--fd lib,utils,config,types \
--git
Option | Description | Default |
---|---|---|
-p, --pm <manager> |
Package manager: npm or pnpm |
npm |
-m, --ms <system> |
Module system: esm or cjs |
esm |
-f, --fd <folders> |
Comma-separated extra folders: lib,utils,config,types |
none |
-g, --git |
Initialize a Git repository | false |
-v, --version |
Display version | — |
-h, --help |
Show help | — |
my-project/
├── src/
│ └── index.ts
├── dist/
├── .prettierrc
├── .gitignore
├── tsconfig.json
└── package.json
We welcome contributions! Please read our Contributing Guidelines before opening an issue or pull request.
This project is licensed under the MIT License.