initial script creation

This commit is contained in:
Philip Ellis
2024-01-18 12:13:37 -06:00
parent e14c786408
commit 560db8f3b2
15 changed files with 1704 additions and 1 deletions

View File

@@ -47,8 +47,10 @@ fs.readFile(args[2], 'utf8', (err, data) => {
}
// Write the modified JSON content back to the file
// Use the line below if you need it to be in a format that can be uploaded to postman
//fs.writeFile(args[2], JSON.stringify({"collection": jsonObject}, null, 2), (writeErr) => {
fs.writeFile(args[2], JSON.stringify(jsonObject, null, 2), (writeErr) => {
if (writeErr) {
console.error('Error writing the file:', writeErr);