UNPKG

arun-yadav-resume

Version:

Arun Yadav's professional resume as an npm package - run with npx arun-yadav-resume

36 lines (28 loc) 890 B
#!/usr/bin/env node // bin/cli.js - Fixed version const resume = require('../index.js'); // Clear the terminal for a clean presentation console.clear(); // Check if resume is a function, if not, just log it directly if (typeof resume === 'function') { console.log(resume()); } else { console.log(resume); } // Handle command line arguments const args = process.argv.slice(2); if (args.includes('--help') || args.includes('-h')) { console.log(` Usage: npx @arun-yadav-fury0007/my-resume [options] Options: --help, -h Show this help message --version, -v Show version information Examples: npx arun-yadav-resume # Show full resume npx arun-yadav-resume --help # Show help `); } if (args.includes('--version') || args.includes('-v')) { const pkg = require('../package.json'); console.log(`Version: ${pkg.version}`); }