Find minimum in an array of version that satisfies a semver range.
Return the version string or null if no version in the arrya satisfy given range.
npm install --save semver-first-satisfied
const firstSatisfied = require('semver-first-satisfied');
console.log(firstSatisfied('^1.1.0', ['0.5.0', '1.1.4', '1.2.3', '1.1.1']));
'1.1.1'
The MIT License (MIT)
Copyright (c) 2015 parro-it