UNPKG
brush_cli
Version:
latest (0.0.2)
0.0.2
0.0.1
A tool for creating and developing cmos PC Framework project.
brush_cli
/
node_modules
/
deps-sort
/
bin
/
cmd.js
11 lines
(7 loc)
•
304 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/env node
var
argv =
require
(
'subarg'
)(process.
argv
.
slice
(
2
));
var
JSON
Stream =
require
(
'JSONStream'
);
var
sort =
require
(
'../'
)(argv);
var
parse =
JSON
Stream.
parse
([
true
]);
var
stringify =
JSON
Stream.
stringify
(); process.
stdin
.
pipe
(parse).
pipe
(sort).
pipe
(stringify).
pipe
(process.
stdout
);