Sign in
apache
/
cordova-js
/
refs/heads/cb-4.2.3-node-modules-for-coho-only
/
.
/
node_modules
/
deps-sort
/
example
/
sort.js
blob: cfc007548aaf9aca21fb7b25e81bc0e327e8714b [
file
] [
log
] [
blame
]
var
sort
=
require
(
'../'
)();
var
JSONStream
=
require
(
'JSONStream'
);
var
parse
=
JSONStream
.
parse
([
true
]);
var
stringify
=
JSONStream
.
stringify
();
process
.
stdin
.
pipe
(
parse
).
pipe
(
sort
).
pipe
(
stringify
).
pipe
(
process
.
stdout
);