parser-csv
Version:
CSV parser, compatible with [parser-cache].
67 lines (45 loc) • 1.05 kB
Markdown
# {%= name %} {%= badge("fury") %}
> {%= description %}
## Install
{%= include("install-npm", {save: true}) %}
## Run tests
```bash
npm test
```
## Usage
```js
var parser = require('{%= name %}');
```
See [parse-csv] for the full range of options and features, and to report issues related to parsing.
### parse
```js
parser.parse(str, options, function(err, res) {
if (err) { throw err; }
console.log(res);
});
```
### parseFile
```js
parser.parseFile('fixtures/a.csv', function (err, res) {
if (err) { throw err; }
console.log(res);
});
```
### parseSync
```js
var res = parser.parseSync(str, options);
console.log(res);
```
## API
{%= comments("index.js") %}
## Contributing
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue]({%= bugs.url %})
## Author
{%= include("author") %}
## License
{%= copyright() %}
{%= license() %}
***
{%= include("footer") %}
[parser-cache]: https://github.com/jonschlinkert/parser-cache
[parse-csv]: https://github.com/jonschlinkert/parse-csv