Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

info 289B

12345678910
  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]);