Skip to content
ed9506bbaf
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
lib
February 1, 2022 18:56
February 1, 2022 18:56
February 1, 2022 18:56
February 1, 2022 18:56

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:

const NoFilter = require('nofilter')
// In ES6:
// import NoFilter from 'nofilter'
// In typescript:
// import NoFilter = require('nofilter')

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

As a data source:

const NoFilter = require('nofilter')
const nf = new NoFilter('010203', 'hex')
nf.pipe(process.stdout)

Read the API Docs.