git init- create master as master branch git branch
- create file gitignore
- create a repo daddy-jokes
- copy and paste git remote add origin git@github.com:Sandrajasmin/daddy-jokes.git git branch -M main git push -u origin main
"name": "daddy-jokes", "version": "1.0.0", "description": "## 1", "type": "module", "main": "index.js",
create script and add import joker from "one-liner-joke";
console.log(joker.getRandomJoke().body());
"scripts": { "test": "node src/js/joker.js"
- npm log in
- npm publish
- npm i (package from npm)
CHECK error: failed to push some refs to 'github.com:Sandrajasmin/daddy-jokes.git'