git ssb

0+

cel-desktop / ssb-pkg



Tree: 8f4b43a09aab9801bf28987edd59c2e366180327

Files: 8f4b43a09aab9801bf28987edd59c2e366180327 / test / test-79-npm / readable-stream / readable-stream.js

384 bytesRaw
1'use strict';
2
3var fs = require('fs');
4var path = require('path');
5var fst = fs.createReadStream(path.join(__dirname, 'readable-stream.js'));
6var Readable = require('readable-stream');
7var rst = new Readable();
8rst.wrap(fst);
9
10setTimeout(function () {
11 var test = '\'use strict\';';
12 var c = rst.read(test.length);
13 if (c.toString() === test) {
14 console.log('ok');
15 }
16}, 100);
17

Built with git-ssb-web