Skip to content

A CLI tool that bootstraps a Nodejs based typescript project with standard configs applied for you

License

Notifications You must be signed in to change notification settings

devharshthakur/nodetsp

NodeTSP

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.

Features

  • Full ESM & modern TypeScript support
  • Pre-configured ESLint & Prettier for consistent style
  • Automatic Git repository initialization
  • Customizable folder structure
  • One-command project scaffolding

Installation

npm install -g nodetsp
# or
pnpm add -g nodetsp

Quick Start

# 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

CLI Options

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

Generated Project Structure

my-project/
├── src/
│   └── index.ts
├── dist/
├── .prettierrc
├── .gitignore
├── tsconfig.json
└── package.json

Contributing

We welcome contributions! Please read our Contributing Guidelines before opening an issue or pull request.

License

This project is licensed under the MIT License.

About

A CLI tool that bootstraps a Nodejs based typescript project with standard configs applied for you

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Contributors 2

  •  
  •