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
2023-11-02 00:30:15 +01:00
.vscode BREAKING CHANGE(core): switch to esm 2022-03-31 01:20:01 +02:00
test fix(core): update 2023-11-01 14:16:58 +01:00
ts fix(core): update 2023-11-02 00:30:15 +01:00
.gitignore BREAKING CHANGE(core): switch to esm 2022-03-31 01:20:01 +02:00
.gitlab-ci.yml fix(core): update 2023-11-01 14:16:58 +01:00
npmextra.json fix(core): update 2023-07-12 11:27:46 +02:00
package.json 2.0.7 2023-11-01 14:18:35 +01:00
pnpm-lock.yaml fix(core): update 2023-11-01 14:16:58 +01:00
readme.md fix(core): update 2022-03-31 01:20:20 +02:00
tsconfig.json fix(core): update 2023-11-01 14:16:58 +01:00

@pushrocks/smartstream

simplifies access to node streams

Status for master

Status Category Status Badge
GitLab Pipelines pipeline status
GitLab Pipline Test Coverage coverage report
npm npm downloads per month
Snyk Known Vulnerabilities
TypeScript Support TypeScript
node Support node
Code Style Code Style
PackagePhobia (total standalone install weight) PackagePhobia
PackagePhobia (package size on registry) PackagePhobia
BundlePhobia (total size when bundled) BundlePhobia
Platform support Supports Windows 10 Supports Mac OS X

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

Contribution

We are always happy for code contributions. If you are not the code contributing type that is ok. Still, maintaining Open Source repositories takes considerable time and thought. If you like the quality of what we do and our modules are useful to you we would appreciate a little monthly contribution: You can contribute one time or contribute monthly. :)

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