Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nested_json_to_csv

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nested_json_to_csv - npm Package Compare versions

Comparing version 1.1.7 to 1.1.8

20

index.js

@@ -10,15 +10,15 @@ const nestedJsonToCsv = require('./nestedJsonToCsv').nestedJsonToCsv;

async function main() {
// async function main() {
// const csvFile = await general.fileContent("file2.csv");
// const json = csvToNestedJson(jsonFile, csvFile, true, true);
// general.saveFile("newJson.json", JSON.stringify(json));
// console.log(json);
jsonFile = { "name": "coffee", "price": 123 };
const csv = nestedJsonToCsv(jsonFile, ["name", "price"]);
console.log(csv);
// // const csvFile = await general.fileContent("file2.csv");
// // const json = csvToNestedJson(jsonFile, csvFile, true, true);
// // general.saveFile("newJson.json", JSON.stringify(json));
// // console.log(json);
// jsonFile = { "name": "coffee", "price": 123 };
// const csv = nestedJsonToCsv(jsonFile, ["name", "price"]);
// console.log(csv);
}
// }
main();
// main();
{
"name": "nested_json_to_csv",
"version": "1.1.7",
"version": "1.1.8",
"description": "",

@@ -5,0 +5,0 @@ "main": "index.js",

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