A library to simplify the creation and manipulation of Node.js streams, providing utilities for handling transform, duplex, and readable/writable streams effectively in TypeScript.
Go to file
2019-02-20 23:18:21 +01:00
test fix(core): update 2019-02-19 01:10:56 +01:00
ts fix(docs): update 2019-02-20 00:40:31 +01:00
.gitignore added gitlab ci 2016-09-25 14:00:16 +02:00
.gitlab-ci.yml fix(core): update 2019-02-19 01:10:56 +01:00
npmextra.json fix(core): update 2019-02-19 01:10:56 +01:00
package-lock.json 1.0.14 2019-02-20 23:18:21 +01:00
package.json 1.0.14 2019-02-20 23:18:21 +01:00
README.md fix(docs): update 2019-02-20 00:40:31 +01:00
tslint.json fix(core): update 2019-02-19 01:10:56 +01:00

@pushrocks/smartstream

simplifies access to node streams

Status for master

build status coverage report npm downloads per month Known Vulnerabilities TypeScript node JavaScript Style Guide

Usage

Use TypeScript for best in class instellisense.

import { Smartstream } from 'smartstream'
import * as gUglify from 'gulp-uglify'

let mySmartstream = new Smartstream([
    gulp.src(['./file1.js','./file2.js']),
    gUglify(),
    gulp.dest('./some/output/path')
])

mySmartstream.onError((err) => { /* handle error */ }) // handles all errors in stream
myStream.onCustomEvent('myeventname', (args...) => { /* Do something */ }) // emit an custom event anywhere in your stream
mySmartstream.run().then(() => {/* do something when stream is finished */})

For further information read the linked docs at the top of this readme.

MIT licensed | © Lossless GmbH | By using this npm module you agree to our privacy policy

repo-footer