UNPKG

get-published-version

Version:

Gets the currently published version of a package

15 lines (13 loc) 457 B
# get-published-version Small utility that retrieves the latest version of a module published to npmjs.<br><br>**NOTE:** Future versions will allow you to specify a registry. ## Install `npm install -g get-published-version` ## Programmatic Use #### Command Line ```get-published-version <module name>``` #### Node ```js const getVersion = require('get-published-version'); getVersion('get-published-version') .then(version => console.log(version)); ```