This repository has been archived on 2024-07-27. You can view files and clone it, but cannot push or open issues or pull requests.
keksAccountGUI/node_modulesOLD/bfj/src/datastream.js
2019-08-11 20:48:02 +02:00

17 lines
406 B
JavaScript

'use strict'
const check = require('check-types')
const BfjStream = require('./stream')
const util = require('util')
util.inherits(DataStream, BfjStream)
module.exports = DataStream
function DataStream (read, options) {
if (check.not.instanceStrict(this, DataStream)) {
return new DataStream(read, options)
}
return BfjStream.call(this, read, Object.assign({ objectMode: true }, options))
}