15.4.0 • Published 5 years ago
@the-/mixin-stream v15.4.0
@the-/mixin-stream
Mixins for stream
Installation
$ npm install @the-/mixin-stream --save
Usage
'use strict'
const { withDebug } = require('@the-/mixin-stream')
const { TheStream } = require('@the-/stream')
async function tryExample() {
class MyStream extends withDebug(TheStream) {
/* ... */
doSomething() {
/*...*/
}
}
const stream = new MyStream()
await stream.doSomething()
}
tryExample().catch((err) => console.error(err))
API Guide
function
License
This software is released under the MIT License.