Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including curver with all npm packages installed. Try it out:

var curver = require("curver")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

curver v1.0.3

Easily fetch the latest version of node module available on npm.

curver

Easily fetch the latest version of node module available on npm.

Build Status

Scraps the current version of a node module from it's readme page. Basically from sidebar. Does not look version from package.json file.

Install

$ npm install --save curver

Usage


const curver = require('curver');

curver('packstat').then(currentVersion => {
    console.log(currentVersion);
    // => 1.0.4
})

Related

License

MIT © Rishi Giri

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free