source: frontend/node_modules/bfj/src/stream.js

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 504 bytes
RevLine 
[9af201e]1'use strict'
2
3const util = require('util')
4const Readable = require('stream').Readable
5const check = require('check-types')
6
7util.inherits(BfjStream, Readable)
8
9module.exports = BfjStream
10
11function BfjStream (read, options) {
12 if (check.not.instanceStrict(this, BfjStream)) {
13 return new BfjStream(read)
14 }
15
16 check.assert.function(read, 'Invalid read implementation')
17
18 this._read = function () { // eslint-disable-line no-underscore-dangle
19 read()
20 }
21
22 return Readable.call(this, options)
23}
Note: See TracBrowser for help on using the repository browser.