mirror of
https://github.com/Raghu-Ch/nodeRestAPI.git
synced 2026-02-10 20:53:02 -05:00
initial commit
This commit is contained in:
13
node_modules/latest-version/index.js
generated
vendored
Normal file
13
node_modules/latest-version/index.js
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
'use strict';
|
||||
var packageJson = require('package-json');
|
||||
|
||||
module.exports = function (name, cb) {
|
||||
packageJson(name.toLowerCase(), 'latest', function (err, json) {
|
||||
if (err) {
|
||||
cb(err);
|
||||
return;
|
||||
}
|
||||
|
||||
cb(null, json.version);
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user