Nodeneeds brings all that a node app needs based on what kind of app you intend to create
nodeneeds is an out of the box node module which can be used to get started on building a NPM package with all the best practicies.
The features supported include:
With all that background in mind, lets get started and create your very own npm package and publish it to npmjs.org
You must have installed nodejs on you machine, else here is the detailed instruction on how to do it.
After you have installed node and npm on your machine, go ahead and install the nodeneeds tool by running the following command
npm install @chandu1310/nodeneeds -g
This install the nodeneeds tool as a command that you can invoke at your shell prompt.
For now let us try to create a default NPM package and publish it.
Navigate to any directory of your choice (referring it as workspace from now on) eg. your home directory and run
nodeneeds
This starts the tool and asks a bunch of questions and usually has some default answers too.
nodeneeds
? What is the name of the node module? (abcd-1565303009156)
Provide the name of the node module you are creating. Defaults to username-timestamp
? How do you intend to use it? (Use arrow keys)
❯ NPM Package
Lambda based Rest Service
ReactJS App Lerna Mono Repo
Select the option which lets us create an npm package. Rest of the options are not yet available and still create the default npm package.
That is all. It should run through fetching the latest nodeneeds definition if needed and bootstrap a nodejs package for you with the given name. It cleans up any temp files created at the end.
Fetching latest nodeneeds
Created NPM module abcd-1565303009156
Cleaning up any leftover mess!
Have fun!