Sha256: ac6b35ca053000ddd18d728d182ca6d28fe557396ec2150f5cc7206f2564c182
Contents?: true
Size: 289 Bytes
Versions: 279
Compression:
Stored size: 289 Bytes
Contents
#!/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]);
Version data entries
279 entries across 162 versions & 21 rubygems