@krishnakodoth/create-nodejs-app
v3.0.0
Published
A CLI tool to create a Node.js application with a predefined structure and dependencies.
Readme
Install Dependencies:
npm install chalk inquirer degitchalk: For colorful console output.inquirer: For interactive prompts.degit: To clone your boilerplate without .git history.
Make the CLI Executable: Add the following to package.json
"bin": {
"create-nodejs-app": "./index.js"
}This tells npm to use index.js as the entry point for the create-nodejs-app command.
Add the Shebang: Add the following to the top of index.js:
#!/usr/bin/env nodeUpdate the package.json
"private": falseRun the publish command with the --access public flag:
npm publish --access public