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
/
example
/
sort.js
7 lines
(5 loc)
•
225 B
JavaScript
View Raw
1
2
3
4
5
6
7
var
sort =
require
(
'../'
)();
var
JSON
Stream =
require
(
'JSONStream'
);
var
parse =
JSON
Stream.
parse
([
true
]);
var
stringify =
JSON
Stream.
stringify
(); process.
stdin
.
pipe
(parse).
pipe
(sort).
pipe
(stringify).
pipe
(process.
stdout
);