hello-pranay
v1.0.1
Published
Introduction card for Pranay Pandey with hyperlinks to social media profiles.
Readme
hello-pranay
Terminal introduction card for Pranay Pandey.
Run it instantly:
npx hello-pranayCreate Your Own Card From This Repo
Anyone can clone this repository, customize it with their details, publish to npm, and run it using:
npx <your-package-name>1) Clone this repository
git clone https://github.com/Pranayy1/hello-pranay.git
cd hello-pranay2) Customize your card content
Edit these files:
index.js: your name, intro text, links, symbols, colors, and card stylepackage.json:name: must be unique on npm (example:hello-yourname)binkey: should match the command users will runauthor,description,keywords: update for your profile
Important: if you change package
name, also change the command key insidebin.
Example:
"name": "hello-yourname",
"bin": {
"hello-yourname": "./index.js"
}3) Test locally
node index.jsOptional local npx-style test:
npm link
npx hello-yourname4) Publish to npm
Create an npm account (if needed): npm signup
npm login
npm publishIf package name is already taken, choose a new one in package.json.
5) Run from anywhere
After publishing, anyone can run:
npx hello-yournameUpdating After First Publish
- Edit your files (
index.js,package.json, etc.) - Increase version in
package.json(for example1.0.0→1.0.1) - Publish again:
npm publishTroubleshooting
- Package name already exists: use a unique package name.
- Not logged in: run
npm login. - You cannot publish over an existing version: bump
versioninpackage.json. npxruns old output: publish a new version and try again.
Notes
- Keep your
index.jsexecutable header:
#!/usr/bin/env nodenpxworks best when your package has a validbinentry.
Credits
Initial scaffold inspired by create-intro-card.
