Skip to content

Instantly share code, notes, and snippets.

@akameco
Created August 30, 2017 10:41
Show Gist options
  • Save akameco/13eda8756bba6d2b858f1f58f2e966cd to your computer and use it in GitHub Desktop.
Save akameco/13eda8756bba6d2b858f1f58f2e966cd to your computer and use it in GitHub Desktop.
'use strict'
const parse = require('mri') // or require('minimist')
// node cli.js --name tj
const { name } = parse(process.argv.slice(2))
const jsers = {
tj: ['express', 'koa', 'mocha', 'stylus', 'co'],
sindersorhus: ['ava', 'chalk', 'xo', 'yaomen'],
rauchg: ['socket.io', 'next.js'],
kittens: ['babel', 'yarn'],
gaearon: ['redux', 'creaet-react-app'],
substack: ['browserify', 'tape'],
}
console.log(jsers[name] || jsers)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment