---
title: "@vltpkg/satisfies"
description: "Documentation for the vlt client and the vlt registry."
url: "https://docs.vlt.io/client/api-reference/satisfies"
image: "https://docs.vlt.io/og/client/api-reference/satisfies"
lang: "en"
---

# @vltpkg/satisfies

![satisfies](https://github.com/user-attachments/assets/5dc35dbc-c8b2-4dac-844d-81ee5569347b)

# @vltpkg/satisfies

Give it a DepID and a Spec, and it'll tell you whether that dep satisfies the spec.

## Usage

```js
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
```
