Skip to content

KunalBurangi/parse-csvtojson

Repository files navigation

parse-csvtojson

Package Version [Build Status] PackagePhobia Latest Commit

Stream and CLI to convert CSV to JSON.

Install

Installation of the npm package:

Install globally if you want to use the CLI:

npm install --global parse-csvtojson

Install locally if you want to use it as a library:

npm install --save parse-csvtojson

Usage

Json Object

var csv2json = require("csvtojson-parser"); var fs = require("fs"); csv2json("example.csv", options, function (err, jsonData) { if (err) { console.error("Error:", err); } else { result = jsonData; console.log(JSON.stringify(jsonData, null, 2)); } });


## Contributions

Contributions are *very* welcomed, either on the documentation or on
the code.

You may:

- report any [issue](https://github.com/kunalburangi/parse-csvtojson/issues)
  you've encountered;
- fork and create a pull request.

## Note

Thanks to @twilson63 for letting me use the *parse-csvtojson* name on [npm](https://www.npmjs.org/).

## License

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published