🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

ezs

Package Overview
Dependencies
Maintainers
1
Versions
93
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ezs

A wrapper to build Stream transformers with functional style

Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

Make pipeline of streams easy : Easy Streams

Build Status

It's just a wrapper to build Stream transformers with functional style. It's like the koa / expressjs middlewares !

Example


const ezs = require('ezs')

ezs.use(require('ezs-basics'));

process.stdin.resume();
process.stdin.setEncoding('utf8');
process.stdin
  .pipe(ezs('split', { delimiter: "\n" }))
  .pipe(ezs('counter'))
  .pipe(ezs(function(input, output) {
	  output.send(input.toString();
  })
  .pipe(process.stdout);


Installation

With npm:

$ npm install ezs

Tests

Use mocha to run the tests.

$ npm install mocha
$ mocha test

API Documentation

ezs(statement : Mixed, [option : Object]) : Stream

Converts a transform stream with existing function or adhic function.

	const ezs = require('ezs'),
	let trasnformer = ezs(function(input, output) {
		output.send(input.toString())
	})

use(module: Function) : None

Adding bundle of statements. see the avaible modules here : https://www.npmjs.com/browse/keyword/ezs

	var ezs = require('ezs'),

	ezs.use(require('ezs-basics'));
	ezs.use(require('ezs-files'));

License

MIT/X11

Keywords

stream

FAQs

Package last updated on 26 Jan 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts