/
iliyagladkov
/
to-do-react
Обзор
Документация
Войти
/
iliyagladkov
/
to-do-react
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
node_modules/bfj/src/stream.js
23 строки
504 B
Iliya
Final
18 фев 2023, 15:04
18 фев 2023, 15:04
fae6815
Код
Авторство
О чём код?
'use strict' const util = require('util') const Readable = require('stream').Readable const check = require('check-types') util.inherits(BfjStream, Readable) module.exports = BfjStream function BfjStream (read, options) { if (check.not.instanceStrict(this, BfjStream)) { return new BfjStream(read) } check.assert.function(read, 'Invalid read implementation') this._read = function () { // eslint-disable-line no-underscore-dangle read() } return Readable.call(this, options) }