New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

convert-json

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

convert-json - npm Package Compare versions

Comparing version 0.2.1 to 0.3.0

5

libs/index.js

@@ -39,3 +39,6 @@ var fs = require('fs');

default:
callback('Not Support');
if(config.type==='csv' && config.input)
return this.cvCSV(config, callback);
else
return callback('Not Support');
}

@@ -42,0 +45,0 @@ }

10

package.json
{
"name": "convert-json",
"version": "0.2.1",
"version": "0.3.0",
"description": "auto detect file type and convert it to json format",

@@ -27,7 +27,7 @@ "main": "index.js",

"dependencies": {
"xls-to-json": "0.1.1",
"xlsx-to-json": "0.1.1",
"node-csv-json": "0.1.1",
"xls-to-json": "0.2.1",
"xlsx-to-json": "0.2.1",
"node-csv-json": "0.2.1",
"xml-to-json": "0.1.0",
"node-tsv-json": "~0.1.0"
"node-tsv-json": "~0.2.0"
},

@@ -34,0 +34,0 @@ "devDependencies": {

@@ -43,2 +43,19 @@ # Convert JSON

#### input string to csv
if you input string istead a file path, bring a `type` parameter
```javascript
cv_json({
type: 'csv',
input: "<csv string...>",
output: null
}, function(err, result) {
if(err) {
console.error(err);
}else {
console.log(result);
}
}
);
```

@@ -45,0 +62,0 @@ ## License

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc