nofilter

2019-08-16 admin

nofilter是什么

什么是nofilter,Read and write a growable buffer as a stream

nofilter使用教程帮助文档

Build Status Coverage Status

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:

var NoFilter = require('nofilter');
nf = new NoFilter();
nf.on('finish', function() {
  console.log(nf.toString('base64'));
});
process.stdin.pipe(nf);

As a data source:

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

Read the API Docs.

本站文章除注明转载外,均为本站原创或编译。欢迎任何形式的转载,但请务必注明出处。

转载请注明:文章转载自 JavaScript中文网 [https://www.javascriptcn.com]

本文地址:https://www.javascriptcn.com/read-72656.html

文章标题:nofilter

回到顶部