Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

filter-helper

eloyesp10GPL0.1.0

Helps building unix filters with JavaScript

sed, stdio, filter, unix

readme

Filter Helper

Make a filter in JavaScript without much noise.

This is a simple module done for learning so I would thank any feedback.

Usage

It should help making very simple filters in JavaScript just defining a function:

#!/usr/bin/env node

var fh = require('filter-helper');

// this script will prepend something to every line

fh(function (line) {
  return process.argv[2] + " " + line;
});