npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

node-vers

v1.2.0

Published

Grab a full list of node versions and associated metadata

Downloads

3

Readme

Node Vers

Gives a listing of all Node versions

Usage:

You can use node-vers as a module or a CLI utility.

Using as a module:

var nodevers = require('node-vers');

nodevers.list(null, function(err, result) {
  if (err) {
    console.error("Error occurred: " + err);
  } else {
    console.log(result);
  }
});

You can also exclude certain fields from the resulting JSON, if you don't need them:

var options = { "blacklist" : ["files", "openssl", "modules", "uv", "zlib"] };
nodevers.list(options, function(err, result) {
    console.log(result);
});

And you can indicate to only get single (latest) value for each minor version:

var options = { "latest_only" : true 
              , "blacklist" : ["files", "openssl", "modules", "uv", "zlib"] };
nodevers.list(options, function(err, result) {
    console.log(result);
});

Using as a CLI utility

> npm install -g node-vers
> node-vers

Alternatives:

Differences:

  1. NV caches static list of node versions and you need to run an update script if you want to get the latest list. Node-vers does a live lookup every time.

  2. NV grabs the list of versions by looking at the list of tags in Node's github repo. This is pretty cool, but it means: git must be installed wherever you want to use this module + you may get something weird if somebody over at Node accidentally creates a stray git tag.

  3. NV only returns the list of versions, while Node-Vers returns an object, for each version, containing following kind of metadata:

    {   version: 'v5.6.0',
        date: '2016-02-09',
        files: 'headers,linux-arm64,linux-armv6l,linux-armv7l,linux-x64,linux-x86,osx-x64-pkg,osx-x64-tar,src,sunos-x64,sunos-x86,win-x64-msi,win-x86-msi',
        npm: '3.6.0',
        v8: '4.6.85.31',
        uv: '1.8.0',
        zlib: '1.2.8',
        openssl: '1.0.2f',
        modules: '47' }
  4. NV supports both Node.js and IO.js. Since IO.js was merged back into Node, I had no interest in supporting io.js