npm
npm init
npm init -y
jq '. + { "type": "module" }' package.json > temp.json && mv temp.json package.json
Notes
- Problems
- ELI5 "script" in package.json
- ELI5 the difference between npm and npx
- ELI5 "bin" in package.json
- node.js - npx
runs on command line but not in package.json scripts section - Stack Overflow - node.js - How to make bin script available for npm package installed locally - Stack Overflow
- javascript - Sending command line arguments to npm script - Stack Overflow
- node.js - npm install errors with Error: ENOENT, chmod - Stack Overflow
- npm-exec | npm Docs
- The npx Node.js Package Runner
- Run your NPX script directly from Github. Create your own CLI commands and other stories - DEV Community
- A guide to creating a NodeJS command-line package | by Rubens Mariuzzo | Netscape | Medium
- Find the installed version of an npm package
Publish
- npm Blog Archive: Building a simple command line tool with npm
bash npm login npm publish --access=public
- Datavis Tech)
- faker - npm