Transforming my Resume into an Interactive Terminal Business Card using NPM ๐
Source: Dev.to
๐ก The Inspiration
The project was originally inspired by anmol098/npx_card. It turned the networking experience into something playful and technical at the same time. Iโm not sure if he came up with the original idea, but itโs brilliant nonetheless.
๐ ๏ธ How to use
To view the card, you donโt need to install anything permanently. As long as you have Node.js installed, just run:
npx ebdonato
๐๏ธ Whatโs under the hood?
To build card-tui, I used (well, the AI used) some classic Node.js CLI libraries:
- Inquirer.js โ creates the interactive menu.
- Boxen โ adds a sleek border around the information.
- Chalk โ adds color to the terminal and highlights links and job titles.
- Marked โ renders Markdown content.
- Open โ triggers and opens links in the userโs default browser.
๐ Why do this?
Beyond being a creative way to introduce yourself, developing an NPM package focused on a TUI (Terminal User Interface) helps you understand:
- Package publishing and versioning on the NPM registry.
- Handling input and output streams in Node.js.
- Design focused on constraints (the terminal is limited, which forces simplicity).
The code is openโsource on my GitHub for anyone who wants to use it as a template for their own: ebdonato/card-tui.