|
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
|
| Line | |
|---|
| 1 | 'use strict'
|
|---|
| 2 |
|
|---|
| 3 | const util = require('util')
|
|---|
| 4 | const Readable = require('stream').Readable
|
|---|
| 5 | const check = require('check-types')
|
|---|
| 6 |
|
|---|
| 7 | util.inherits(BfjStream, Readable)
|
|---|
| 8 |
|
|---|
| 9 | module.exports = BfjStream
|
|---|
| 10 |
|
|---|
| 11 | function 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.