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
2017-03-04 13:50:15 +01:00
dist add cleanPipe() 2017-03-04 13:50:12 +01:00
test add cleanPipe() 2017-03-04 13:50:12 +01:00
ts add cleanPipe() 2017-03-04 13:50:12 +01:00
.gitignore added gitlab ci 2016-09-25 14:00:16 +02:00
.gitlab-ci.yml fix filename for gitlab ci 2016-09-25 14:01:50 +02:00
npmextra.json added gitlab ci 2016-09-25 14:00:16 +02:00
package.json 1.0.6 2017-03-04 13:50:15 +01:00
README.md improved README 2016-09-25 16:28:42 +02:00
tslint.json added gitlab ci 2016-09-25 14:00:16 +02:00
yarn.lock add cleanPipe() 2017-03-04 13:50:12 +01:00

smartstream

simplifies access to node streams, TypeScript ready!

Availabililty

npm git git docs

Status for master

build status coverage report Dependency Status bitHound Dependencies bitHound Code TypeScript node JavaScript Style Guide

Usage

We recommend the use of TypeScript for best in class intellisense support.

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 */})