nested_json_to_csv
Advanced tools
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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
40379