Initialize a nodejs module with create-nodejs-module for this node structure(https://github.com/rahul2104/demo-node)
The simplest way to get started is to use npx
:
npx create-nodejs-project-module <module name>
npm init nodejs-project-module <module name>
npm init is available in npm 6+
yarn create nodejs-project-module <module name>
yarn create is available in Yarn 0.25+