daddy-jokes-sandra

1.0.1 • Public • Published

MODULE TWO

1

git init- create master as master branch git branch

2. Add gitignore

  • create file gitignore

3. connect my project to github repo

  1. create a repo daddy-jokes
  2. copy and paste git remote add origin git@github.com:Sandrajasmin/daddy-jokes.git git branch -M main git push -u origin main

4. add type to package.json

"name": "daddy-jokes", "version": "1.0.0", "description": "## 1", "type": "module", "main": "index.js",

5. import one liner joker

create script and add import joker from "one-liner-joke";

console.log(joker.getRandomJoke().body());

6. change test to run npm run test

"scripts": { "test": "node src/js/joker.js"

7. log in to npm

  • npm log in

8. publish

  • npm publish

9. go to npm and sarch

  • npm i (package from npm)

CHECK error: failed to push some refs to 'github.com:Sandrajasmin/daddy-jokes.git'

Readme

Keywords

none

Package Sidebar

Install

npm i daddy-jokes-sandra

Weekly Downloads

0

Version

1.0.1

License

ISC

Unpacked Size

1.51 kB

Total Files

3

Last publish

Collaborators

  • sendraj