This package has been deprecated

Author message:

smartstream has been deprecated in favour of @pushrocks/smartstream - please upgrade asap!!!

smartstream
TypeScript icon, indicating that this package has built-in type declarations

1.0.10 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i smartstream

Weekly Downloads

10

Version

1.0.10

License

MIT

Last publish

Collaborators

  • lossless