Package detail

nofilter

hildjj4mMIT6.0.1

Read and write a growable buffer as a stream

buffer, stream, duplex, transform

readme

Tests coverage

NoFilter

A node.js package to read and write a stream of data into or out of what looks like a growable Buffer.

I kept needing this, and none of the existing packages seemed to have enough features, test coverage, etc.

Examples

As a data sink:

import {NoFilter} from 'nofilter';

const nf = new NoFilter();
nf.on('finish', () => {
  console.log(nf.toString('base64'));
});
process.stdin.pipe(nf);

As a data source:

import {NoFilter} from 'nofilter';
const nf = new NoFilter('010203', 'hex');
nf.pipe(process.stdout);

Read the API Docs.

changelog

Changelog

All notable changes to this project will be documented in this file.

[5.0.0] - 2024-09-03

  • Updated to eslint flat, fixed ensuing lint issues
  • Updated all other dependencies
  • [BREAKING] now requires node 18

[4.0.0] - 2023-05-13

Changed

  • Now requires use as an ES6 module.
  • Now requires Node.js version 16 or greater
  • Now generates docs with typedoc
  • Now uses c8 for coverage instead of nyc
  • Updated all dependencies. Removed unused dependencies.