index.js 145 Bytes Raw Blame History Permalink 1 2 3 4 'use strict'; const packageJson = require('package-json'); module.exports = name => packageJson(name.toLowerCase()).then(data => data.version);