loading...
Cover image for Creating a npx introduction card

Creating a npx introduction card

harshhhdev profile image Harsh Singh Updated on ・1 min read

I was looking around GitHub the other day, and I found this awesome idea by anmol singh, on creating a npx card to introduce themselves. I thought it was a cool idea, so I made one for myself too!

You can hit npx harsh-dev in your terminal right now to learn more about me 😉

End result

image

Setting it up

  • Clone the repo
  • Install the npm packages. (npm install)
  • Test it out (node card.js)
  • Change everything to your preferences.
  • Publish to npm. If you do not have a user added, do npm adduser. If you have that though, simply do npm publish
  • Now, people can check out your npx card! Just have them type npx pacakge-name, and watch the magic happen!

Prerequisites

Thanks to anmol singh for this awesome idea! Cheers 🍻 everyone :)

Discussion

pic
Editor guide
Collapse
lukeshiru profile image
▲ LUKE知る

Ohh! Nice idea! I just did mine, you can check it by running:

npx lukeshiru-card
Enter fullscreen mode Exit fullscreen mode

And the source can be found here: lshi.ru/card-source

Thanks for sharing, Harsh!

Collapse
harshhhdev profile image
Harsh Singh Author

No problem at all! Credits to Anmol for the awesome idea.

Just saw your card and your portfolio, it's AMAZING! Wonderful job :)
Gave your repo a star 😉 keep it up 👍

Collapse
sakindu profile image
Sakindu

Hi, Great information!!!

But one thing is that when I type like 'npx harsh-dev', it shows an ERROR...

Collapse
harshhhdev profile image
Harsh Singh Author

Strange, mind telling me what the error is?

Collapse
sakindu profile image
Sakindu

Error: EPERM: operation not permitted, mkdir 'C:\Users\my_username'
command not found: harsh-dev

That's the error..

Thread Thread
harshhhdev profile image
Harsh Singh Author

Strange, this resource might help you though.