You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
295 B
CoffeeScript

cdx = require "./"
fs = require "fs"
adhocStream = require "adhoc-stream"
JSONStream = require "JSONStream"
fs.createReadStream "./sample.cdx"
.pipe cdx()
.pipe adhocStream.transformSync objectMode: true, (chunk) ->
@push chunk.data
.pipe JSONStream.stringify(false)
.pipe process.stdout