Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

satisfies

@vltpkg/satisfies

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'

const id = ';;[email protected]'
const spec = Spec.parse('foo@npm:[email protected]')

console.log(satisfies(id, spec)) // true