a zip code crypto-currency system good for red ONLY

info 289B

1234567891011
  1. #!/usr/bin/env node
  2. 'use strict';
  3. var fs = require('fs');
  4. var name = process.argv[2] || '.';
  5. var property = process.argv[3] || 'version';
  6. if (name != '.') name = 'node_modules/' + name;
  7. var json = JSON.parse(fs.readFileSync(name + '/package.json', 'utf8'));
  8. console.log(json[property]);