1.0.0 • Published 3 years ago

yo-data-processing v1.0.0

Weekly downloads
-
License
-
Repository
github
Last release
3 years ago

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);
    });
1.0.0

3 years ago

0.9.1

3 years ago

0.9.0

3 years ago