asdf-games/node_modules/garnish/bin/cmd.js

16 lines
302 B
JavaScript
Raw Normal View History

#!/usr/bin/env node
var stdout = require('stdout-stream')
var garnish = require('../')
var argv = require('minimist')(process.argv.slice(2), {
alias: {
level: 'l',
name: 'n'
}
})
process.stdin.resume()
process.stdin.setEncoding('utf8')
process.stdin
.pipe(garnish(argv))
.pipe(stdout)