/
lostSun
/
project-client-server-apps
Обзор
Документация
Войти
/
lostSun
/
project-client-server-apps
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
node_modules/bfj/src/stream.js
23 строки
504 B
1lostsun
initial commit
05 май 2025, 11:35
05 май 2025, 11:35
fe8f535
Код
Авторство
О чём код?
'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) }