1.1.0 • Published 2 years ago
@micheledinelli/cli-card v1.1.0
cli-card
Cli card is a node.js project to show yout contact information directly on the cli.

Installation
Clone this repo with
https://github.com/micheledinelli/cli-card.gitSet up
Edit card.js adding your contact information. You'll find a json object; add and modify key-value pairs as you like.
{
"name": "<your-name>",
"handle": "<your-handle>",
"twitter": "https://twitter.com/your-twitter",
"github": "https://github.com/your-github",
"labelTwitter": "<twitter-label>",
"labelGitHub": "<github-label>"
}Run
In
package.jsonmodifycli-cardwith your desired entry command"bin": { "cli-card": "./card.js" },Make
card.jsexecutable withchmod +x card.jsLink package locally with
npm linkRun with
npx commandwhere
commandis your handle
Ship it
Login to npm using
npm loginPublish with
npm publish --access=public
Remember to configure package.json properly before publishing.
Acknowledgments
Thanks to this really simple tutorial for the idea and part of the code.