Skip to content

A dataset showing the compiled process version dependencies of various Node.js versions

License

Notifications You must be signed in to change notification settings

baparham/process-versions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

97 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

process-versions

A dataset showing the compiled process version dependencies of different Node.js versions

Installation

yarn add process-versions

npm install process-versions

Javascript usage

const dependencyData = require('process-versions');

// prints out 1.0.9
console.log(dependencyData['16.13.0'].brotli);

Typescript usage

import dependencyData from 'process-versions';

// prints out 1.0.9
console.log(dependencyData['16.13.0'].brotli);

Data Structure

The modules exports a json file directly, where each key in the object is a version of Node.js (currently only starting with 16.9.0) and the value is an object where each key is a dependency with its value representing the version that was compiled into that specific version of Node.js.

If this were to be defined as a Typescript type, it would look something like this:

type DependencyMap = {
  "node": string;
  "v8": string;
  "uv": string;
  "zlib": string;
  "brotli": string;
  "ares": string;
  "modules": string;
  "nghttp2": string;
  "napi": string;
  "llhttp": string;
  "openssl": string;
  "cldr": string;
  "icu": string;
  "tz": string;
  "unicode": string;
  "ngtcp2": string;
  "nghttp3": string;
};

type ProcessVersions = { [id: string]: DependencyMap };

About

A dataset showing the compiled process version dependencies of various Node.js versions

Resources

License

Stars

Watchers

Forks

Packages

No packages published