Check dependency semver against an allowed semver. Comparing semver ranges is difficult. This module checks if the depedency is allowed for the supplied range.
npm install --save heed
import Heed from 'heed';
let heed = new Heed({
dep1: '~0.5.6',
dep2: '^0.9'
})
heed.to('dep1', '~0.5.0') === true;
heed.to('dep2', '1.0.0') === false;
git clone git@github.com:Swaagie/heed.git && cd heed
npm install && npm test
MIT, see LICENSE.md