Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
convert-json
Advanced tools
A collection of converting multiple formats of files to JSON.
stream
)readFile
)readFile
)readFile
)npm install convert-json
var cv2json = require('../');
var csv_trans = cv2json.csv('./test/test.csv', options /* optional */, function(err, result) {
if(err)
console.error(err);
else
console.log(result);
// result should be a json object or array.
})
The first argument is a csv input file, for options see details https://github.com/chilijung/CSVstream#options-csvstreamoptions, and the last argument is a callback function.
var cv2json = require('../');
var csv_trans = cv2json.xls('./test/test.xls', options /* optional */, function(err, result) {
if(err)
console.error(err);
else
console.log(result);
// result should be a json object or array.
})
The first argument is a xls input file, for options see details https://github.com/SheetJS/js-xls#parsing-options, and the last argument is a callback function.
var cv2json = require('../');
var csv_trans = cv2json.xlsx('./test/test.xlsx', options /* optional */, function(err, result) {
if(err)
console.error(err);
else
console.log(result);
// result should be a json object or array.
})
The first argument is a xlsx input file, for options see details https://github.com/SheetJS/js-xlsx#parsing-options, and the last argument is a callback function.
var cv2json = require('../');
var csv_trans = cv2json.xml('./test/test.xml', options /* optional */, function(err, result) {
if(err)
console.error(err);
else
console.log(result);
// result should be a json object or array.
})
The first argument is a xml input file, for options see details https://github.com/Leonidas-from-XIV/node-xml2js#options, and the last argument is a callback function.
https://github.com/chilijung/csvstream
https://github.com/SheetJS/js-xlsx
https://github.com/SheetJS/js-xls
https://github.com/Leonidas-from-XIV/node-xml2js
MIT
FAQs
A collection of converting multiple formats of files to JSON.
The npm package convert-json receives a total of 0 weekly downloads. As such, convert-json popularity was classified as not popular.
We found that convert-json demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.