@vltpkg/satisfies

0.0.0-0.1730724342581 • Public • Published

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 = ';;glob@11.0.1'
const spec = Spec.parse('foo@npm:glob@11.x')

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

Readme

Keywords

none

Package Sidebar

Install

npm i @vltpkg/satisfies

Weekly Downloads

2

Version

0.0.0-0.1730724342581

License

BSD-2-Clause-Patent

Unpacked Size

18.7 kB

Total Files

8

Last publish

Collaborators

  • vltops
  • isaacs
  • lukekarrys
  • ruyadorno
  • darcyclarke