csvjson-csv2json
Advanced tools
Comparing version 5.0.2 to 5.0.3
{ | ||
"name": "csvjson-csv2json", | ||
"description": "Converts CSV to JSON. Powers the most used online tool CSVJSON https://www.csvjson.com/csv2json. Used by thousands everyday.", | ||
"version": "5.0.2", | ||
"version": "5.0.3", | ||
"author": "Martin Drapeau <martindrapeau@gmail.com>", | ||
@@ -6,0 +6,0 @@ "contributors": [], |
@@ -6,3 +6,3 @@ CSVJSON csv2json() function | ||
[npm package here](https://www.npmjs.com/package/csvjson-csv2json). | ||
[npm package here](https://www.npmjs.com/package/csvjson-csv2json) | ||
@@ -12,3 +12,4 @@ # Usage | ||
Node example: | ||
## Node example | ||
``` | ||
@@ -33,4 +34,6 @@ const csv2json = require('./csv2json.js'); | ||
Browser example: | ||
## Browser example | ||
Note: In the browser, global namespace `CSVJSON` is created. It contains the `csv2json` function. | ||
``` | ||
@@ -112,3 +115,3 @@ <script type="text/javascript" src="csv2json.js"></script> | ||
# Documentation | ||
## Documentation | ||
`csv2json` supports a number of options passed as an optional hash: | ||
@@ -123,3 +126,3 @@ - `separator`: Character which acts as separator. If omitted, will attempt to detect comma `,`, semi-colon `;` or tab `\t`. | ||
# Tests | ||
## Tests | ||
Run the tests in your browser by opening `test-browser.html`. | ||
@@ -133,2 +136,5 @@ | ||
# Companion functions | ||
[json2csv](https://github.com/martindrapeau/csvjson-csv2json) to convert JSON to CSV. [npm package here](https://www.npmjs.com/package/csvjson-json2csv). | ||
[JSON2_mod](https://github.com/martindrapeau/json2-mod) to beautify your JSON. [npm package here](https://www.npmjs.com/package/json2-mod). |
40049
134