git ssb

0+

cel-desktop / ssb-pkg



Tree: 65191f9a9664f013ebe726bb95a1a54b086e1bd5

Files: 65191f9a9664f013ebe726bb95a1a54b086e1bd5 / 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