Submit
Path:
~
/
/
proc
/
thread-self
/
root
/
opt
/
alt
/
alt-nodejs6
/
root
/
lib
/
node_modules
/
npm
/
bin
/
File Content:
read-package-json.js
var argv = process.argv if (argv.length < 3) { console.error('Usage: read-package.json <file> [<fields> ...]') process.exit(1) } var file = argv[2] var readJson = require('read-package-json') readJson(file, function (er, data) { if (er) throw er if (argv.length === 3) { console.log(data) } else { argv.slice(3).forEach(function (field) { field = field.split('.') var val = data field.forEach(function (f) { val = val[f] }) console.log(val) }) } })
Edit
Rename
Chmod
Delete
FILE
FOLDER
Name
Size
Permission
Action
node-gyp-bin
---
0755
npm
833 bytes
0755
npm-cli.js
2017 bytes
0755
npm.cmd
464 bytes
0644
read-package-json.js
513 bytes
0755
N4ST4R_ID | Naxtarrr