X7ROOT File Manager
Current Path:
/opt/alt/alt-nodejs6/root/usr/lib/node_modules/npm/bin
opt
/
alt
/
alt-nodejs6
/
root
/
usr
/
lib
/
node_modules
/
npm
/
bin
/
ðŸ“
..
ðŸ“
node-gyp-bin
📄
npm
(833 B)
📄
npm-cli.js
(1.97 KB)
📄
npm.cmd
(464 B)
📄
read-package-json.js
(513 B)
Editing: 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) }) } })
Upload File
Create Folder