Created
August 30, 2017 10:41
-
-
Save akameco/13eda8756bba6d2b858f1f58f2e966cd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'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