shaikfawaz920
v2.0.0
Published
A command-line business card for Syed Mohammad Sameer
Readme
📇 NPM card
My personal CLI card. Run npx samxiao to see it in action!
👀 Preview
npx samxiaoThis will display an interactive CLI business card with:
- 💼 Professional information
- 🔗 Social links
- 💌 Direct email option
- 🎨 Custom styling and emojis
- 🖼️ Centered layout with decorative borders
🚀 Create Your Own
Want to make your own CLI business card? Follow these steps:
- Fork this repository
- Clone your fork:
git clone https://github.com/samxiao/npx-card.git
cd npx-card- Install dependencies:
npm install- Edit the configuration in
src/config.js:
const data = {
name: bold.green('YOUR NAME'),
email: bold.green('[email protected]'),
handle: cyan('@your_handle'),
// ... customize other fields
};- Customize the styling:
- Modify colors using chalk
- Change border styles
- Add your own emojis
- Update the decorative elements
- Test your changes:
npm start- Publish to npm:
# Login to npm if you haven't
npm login
# Update package.json with your details
# Change "name", "author", and "bin" fields
# Publish!
npm publish🛠️ Technologies Used
- Node.js
- boxen - Create boxes in the terminal
- chalk - Terminal string styling
- inquirer - Interactive CLI prompts
- open - Open URLs and email client
📦 Package Structure
.
├── src/
│ ├── config.js # Your personal information
│ └── index.js # Main CLI logic
├── package.json # Project configuration
└── README.md # Documentation⚙️ Configuration Options
In src/config.js, you can customize:
name: Your display nameemail: Contact emailhandle: Social media handlenpm,github,linkedin: Social linksfirstPhrase,secondPhrase: Bio informationborderColor: Box border colorborderStyle: Box style ('single', 'double', 'round', etc.)
📜 License
MIT © Syed Mohammad Sameer
💖 Credits
Inspired by amazing developers(ultirequiem,ShreyamMaity) in the npm community who create CLI name cards.
🤝 Contributing
- Fork it
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
