Skip to content

Test if version-ish string is compatible with current Node version

License

Notifications You must be signed in to change notification settings

ecrmnn/compatible-version

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

compatible-version

Test if version-ish string is compatible with current Node version

Travis npm version npm downloads npm license eslint

Installation

npm install compatible-version --save

Usage

const compatible = require('compatible-version');

// Given Node.js 8.10.0
compatible('v8.10.0');
//=> true

// Given Node.js 8.10.0
compatible('8.10');
//=> true

// Given Node.js 8.10.0
compatible('v8');
//=> true

// Given Node.js 8.10.0
compatible('v8.10.2');
//=> false

// Given Node.js 8.10.0
compatible('8.8');
//=> false

// Given Node.js 8.10.0
compatible('v10');
//=> false

License

MIT © Daniel Eckermann

About

Test if version-ish string is compatible with current Node version

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published