git ssb

0+

cel-desktop / ssb-pkg



Tree: d456a6cc8589489e558e6164750474ed2cfc961e

Files: d456a6cc8589489e558e6164750474ed2cfc961e / 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