An error occurred while loading the file. Please try again.
-
Wolfgang Knopki authored
This reverts commit f83b6c2a, reversing changes made to c2b73ce6.
08d3a3ba
#!/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]);