UNPKG

github-anniversary

Version:

This is a simple code for getting github anniversary(when you started you life by signing up for github)

10 lines (7 loc) 433 B
#!/usr/bin/env node const chalk = require('chalk') const ghn = require('./App'); (async () => { const { isAnniversary, pdate, diffDate } = await ghn(process.argv[2], process.argv[3]) console.log((isAnniversary ? chalk.greenBright.bold('Yep') : chalk.redBright.bold('Nope') + ' your github anniversary is on ' + chalk.greenBright.greenBright(pdate) + ' You still got ' + chalk.greenBright.greenBright(diffDate) + ' Days')) })()