1.0.2 • Published 8 years ago

sharding-to-csv v1.0.2

Weekly downloads
4
License
MIT
Repository
github
Last release
8 years ago

Sharding to CSV

Break a large csv file into small parts.

Install

$ npm install sharding-to-csv

Tests

$ npm install
$ npm test

What is it?

A simple NodeJS module that breaks large csv files into small files to allow manipulation on applications with memory restrictions.

API

Parameters:

  • file - The file path.
  • options:
    • encoding - encoding to use with read and write streams.
    • maxFileSize - determines the size of partitioned files.

Return:

  • EventEmitter

Using

var ShardingToCsv = require('sharding-to-csv').ShardingToCsv;

var sharding = new ShardingToCsv('./path/file.csv',
    { encoding: 'iso-8859-1', maxFileSize: 10485760 }).shard();

sharding.on('completed', () => console.log('completed'));

sharding.on('error', err => console.log(err));

License

  • MIT
1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago