npm i trozlabs/my-module
npx trozlabs/my-module
git clone https://github.com/trozlabs/my-module.git
cd my-module
npm install
run the npx script my-module
(bin.my-module
in package.json
)
npx my-module
npx trozlabs/my-module
output
running: /Users/trozdol/Development/my-module/bin/index.js version: 0.0.1
npm test
output
> my-module@0.0.1 test
> node ./test
############################################
# myModule.version: 0.0.1
############################################
npm run develop
output
> my-module@0.0.1 develop
> nodemon ./test
[nodemon] 3.0.1
[nodemon] to restart at any time, enter `rs`
[nodemon] watching path(s): *.*
[nodemon] watching extensions: js,mjs,cjs,json
[nodemon] starting `node ./test`
############################################
# myModule.version: 0.0.1
############################################
[nodemon] clean exit - waiting for changes before restart