Skip to content

Conversation

@hubjac1
Copy link

@hubjac1 hubjac1 commented Feb 16, 2016

I have add the possibility to call csv-test from node using classic require function.

An example usage might look like this:

var config = fs.readFileSync('path/to/config.yml', 'utf8'),
    stream = fs.createReadStream(path/to/data.csv, 'utf8');

require('csv-test')(config, stream, undefined, function(errors) {
    // handle list of errors.
    console.error(errors)
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant