my-cli-trivia-game
v1.0.1
Published
ref: https://www.youtube.com/watch?v=GupmEQFkDJM&t=17s
Downloads
8
Readme
Creating a CLI in 5 mins
ref: https://www.youtube.com/watch?v=GupmEQFkDJM&t=17s
logging my learnings
commands used
- npm init -y
- npm install -s @clack/prompts
- < ignore import errors from node:timers/promises>
- Update the index.js from https://github.com/theRubberDuckiee/cli-trivia-game/blob/master/index.js
- Add the following to package.json "bin": "./index.js"
Run it:
- Node index.js
Updating to npm:
- npm login
- npm publish
- result: https://www.npmjs.com/package/my-cli-trivia-game