You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
321 B
14 lines
321 B
'use strict' |
|
|
|
var cloneable = require('./') |
|
var fs = require('fs') |
|
var pump = require('pump') |
|
|
|
var stream = cloneable(fs.createReadStream('./package.json')) |
|
|
|
pump(stream.clone(), fs.createWriteStream('./out1')) |
|
|
|
// simulate some asynchronicity |
|
setImmediate(function () { |
|
pump(stream, fs.createWriteStream('./out2')) |
|
})
|
|
|