16 lines
302 B
JavaScript
16 lines
302 B
JavaScript
|
#!/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)
|