Skip to content

Create your own card

Indra Palijama edited this page Oct 23, 2021 · 1 revision

How to create your own presentation card

Let's start.

Cloning the Repo

  1. Be sure to give this repo a star (if you find this repo useful)
  2. Fork this repo to have your own version
  3. Clone your "forked" version into your own machine

Editing

  1. Open the repo into the editor you prefer
  2. Edit the package.json file in order to change the author, the description, or the project version.
  3. To change the messages, you can change the content of this array
  4. You can also change the color of the fonts to your likings, you can refer to chalk library npm site

Register in NPM

  1. If you already have an account in npm jump to the next section
  2. Register into NPM official site
  3. Check your mailbox to confirm your registered email.
  4. To login to npm in your machine type this command npm login

Publishing Your project

  1. Once you're feeling satisfied with the changes you made, let's make a commit and push.
  2. Run npm version patch or npm version 'your custom version'
  3. Run the command npm publish and that's it, wait for the progress to finished.

Testing

  1. open your terminal
  2. run npx 'your package name' (in my case, it's npx indrapalijama)
  3. voila!