Created
April 18, 2017 18:23
-
-
Save phcostabh/85fae3e78e8ae31caa35c42589407368 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const fs = require("fs"); | |
| fs.readFile("./manifest.json", (err, file) => { | |
| const parsed = JSON.parse(file.toString()); | |
| const dependencies = parsed.dependencies; | |
| Object.keys(dependencies).forEach(d => { | |
| console.log(""); | |
| console.log("[[dependencies]]"); | |
| console.log(` name = "${d}"`); | |
| const info = dependencies[d]; | |
| Object.keys(info).forEach(i => { | |
| console.log(` ${i} = "${info[i]}"`); | |
| }); | |
| }); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment