Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add interface for require function #13

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

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