wallet-core/node_modules/latest-version/index.js

5 lines
145 B
JavaScript
Raw Normal View History

2017-05-28 00:38:50 +02:00
'use strict';
const packageJson = require('package-json');
module.exports = name => packageJson(name.toLowerCase()).then(data => data.version);