Files
rpiRadio/ProjectNow/NodeServer/node_modules/latest-version/index.js
2018-05-19 02:20:19 +02:00

5 lines
145 B
JavaScript

'use strict';
const packageJson = require('package-json');
module.exports = name => packageJson(name.toLowerCase()).then(data => data.version);