Give it a DepID and a Spec, and it’ll tell you whether that dep satisfies the spec.
Usage
import { Spec } from '@vltpkg/spec'import { satisfies } from '@vltpkg/satisfies'
console.log(satisfies(id, spec)) // true
Give it a DepID and a Spec, and it’ll tell you whether that dep satisfies the spec.
import { Spec } from '@vltpkg/spec'import { satisfies } from '@vltpkg/satisfies'
console.log(satisfies(id, spec)) // true