Search results
csvtojson module is a comprehensive nodejs csv parser to convert csv to json or column arrays. It can be used as node.js library / command line tool / or in browser. Below are some features: Strictly follow CSV definition RF4180. Work with millions of lines of CSV data.
- 3 Dependencies
3 Dependencies - csvtojson - npm
- Code Beta
Code Beta - csvtojson - npm
- 82 Versions
82 Versions - csvtojson - npm
- 3 Dependencies
Convert CSV to JSON. Latest version: 2.49.0, last published: 3 days ago. Start using convert-csv-to-json in your project by running `npm i convert-csv-to-json`. There are 84 other projects in the npm registry using convert-csv-to-json.
First convert the lines in arrays using the toArray function : var letters = _.toArray(a,b,c,d); var numbers = _.toArray(1,2,3,4); Then object the arrays together using the object function : var json = _.object(letters, numbers); By then, the json var should contain something like : {"a": 1,"b": 2,"c": 3,"d": 4}
Nodejs csv to json converter. Fully featured: Pipe in / Pipe out. Use as Command Line tool or a Node.js lib. Parse CSV to JSON or CSV column arrays. Support all types of CSV. Non-blocking parsing / multi core support. Extremely fast: 4 - 6 times faster than other csv parsers on node.js. Streaming data / low memory usage on large CSV data source.
Streaming CSV parser that aims for maximum speed as well as compatibility with the csv-spectrum CSV acid test suite. csv-parser can convert CSV into JSON at at rate of around 90,000 rows per second. Performance varies with the data used; try bin/bench.js <your file> to benchmark your data.
Stream and CLI to convert CSV to JSON. Installation of the npm package: Install globally if you want to use the CLI: npm install --global csv2json. Install locally if you want to use it as a library: npm install --save csv2json. Usage. CLI. Usage: csv2json [OPTIONS] [<input file> [<output file>]] -d, --dynamic-typing.
Single function csv2json to reliably convert CSV to JSON. Self contained without dependencies. Used to power CSVJSON the online tool found at www.csvjson.com/csv2json. Used by thousands everyday. npm package here