diff options
author | Enrico Weigelt, metux IT consult <enrico.weigelt@gr13.net> | 2017-05-05 22:00:31 +0300 |
---|---|---|
committer | Rebecca Turner <me@re-becca.org> | 2017-08-17 22:53:39 +0300 |
commit | 9462e5d9cfbaa50218de6d0a630d6552e72ad0a8 (patch) | |
tree | c523ce1f1eab3200896007c37dee4898be7fd9d6 /bin/read-package-json.js | |
parent | 0756d687d4ccfcd4a7fd83db0065eceb9261befb (diff) |
bin: Remove unused file, bin/read-package-json.js
The script isn't called, isn't made available as a binary.
Credit: @metux
Reviewed-By: @iarna
PR-URL: https://github.com/npm/npm/pull/16547
Diffstat (limited to 'bin/read-package-json.js')
-rwxr-xr-x | bin/read-package-json.js | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/bin/read-package-json.js b/bin/read-package-json.js deleted file mode 100755 index 7e62a0bd7..000000000 --- a/bin/read-package-json.js +++ /dev/null @@ -1,24 +0,0 @@ -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) - }) - } -}) |