yo-data-processing
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

yo-data-processing

A module that I wrote to process dagta using nodejs stream.

Install and Usage

npm i yo-data-processing
import { getFiles } from 'yo-data-processing/stream';

const stream = getFiles(dirData)
    .on('readable', () => {
        let file;

        while (null != (file = stream.read())) {
            countFiles++;
            console.(`file name => ${file}`);
        }
    })
    .on('end', () => {
        console.log('finish');
    })
    .on('error', (err) => {
        console.error(err);
    });

Readme

Keywords

none

Package Sidebar

Install

npm i yo-data-processing

Weekly Downloads

0

Version

1.0.0

License

none

Unpacked Size

370 kB

Total Files

137

Last publish

Collaborators

  • yolik