diff options
Diffstat (limited to 'deps/npm/node_modules/ajv/scripts/info')
-rwxr-xr-x | deps/npm/node_modules/ajv/scripts/info | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/deps/npm/node_modules/ajv/scripts/info b/deps/npm/node_modules/ajv/scripts/info new file mode 100755 index 00000000000..77269ab5fa9 --- /dev/null +++ b/deps/npm/node_modules/ajv/scripts/info @@ -0,0 +1,10 @@ +#!/usr/bin/env node + +'use strict'; + +var fs = require('fs'); +var name = process.argv[2] || '.'; +var property = process.argv[3] || 'version'; +if (name != '.') name = 'node_modules/' + name; +var json = JSON.parse(fs.readFileSync(name + '/package.json', 'utf8')); +console.log(json[property]); |