# @stoplight/spectral-ref-resolver

> This package provides Spectral-compatible bindings for [@stoplight/json-ref-resolver](https://github.com/stoplightio/json-ref-resolver) and [@stoplight/json-ref-readers](https://github.com/stoplightio/json-ref-readers).

Latest version **1.0.5** (published 2024-11-13) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @stoplight/spectral-ref-resolver
pnpm add @stoplight/spectral-ref-resolver
yarn add @stoplight/spectral-ref-resolver
bun add @stoplight/spectral-ref-resolver
```

## Health

**Score 45/100 (D)** — status: stable.

Positive: has types; no vulnerabilities; high maintenance score.

Warnings: low downloads; no esm support.

Negative: stale.

## Facts

| | |
|---|---|
| Version | 1.0.5 |
| Published | 2024-11-13 |
| First published | 2021-06-18 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | ^16.20 \|\| ^18.18 \|\| >= 20.17 |
| Dependencies | 5 |
| Unpacked size | 14.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3216 |
| Author | Stoplight |
| Maintainers | stoplight-devops, stoplight-spectral-bot |

## Links

- npm: https://www.npmjs.com/package/@stoplight/spectral-ref-resolver
- Repository: https://github.com/stoplightio/spectral
- Issues: https://github.com/stoplightio/spectral/issues
- npm.io page: https://npm.io/package/@stoplight/spectral-ref-resolver

## Dependencies (5)

- [tslib](https://npm.io/package/tslib.md) ^2.8.1
- [dependency-graph](https://npm.io/package/dependency-graph.md) 0.11.0
- [@stoplight/json-ref-readers](https://npm.io/package/@stoplight/json-ref-readers.md) 1.2.2
- [@stoplight/spectral-runtime](https://npm.io/package/@stoplight/spectral-runtime.md) ^1.1.2
- [@stoplight/json-ref-resolver](https://npm.io/package/@stoplight/json-ref-resolver.md) ~3.1.6

## Recent versions

- 1.0.5 (latest) — 2024-11-13
- 1.0.4 — 2023-07-14
- 1.0.3 — 2022-12-13
- 1.0.2 — 2022-10-03
- 1.0.1 — 2021-09-14
- 1.0.0 — 2021-07-09
- 0.0.0 — 2021-06-18

## README

# @stoplight/spectral-ref-resolver

This package provides Spectral-compatible bindings for [@stoplight/json-ref-resolver](https://github.com/stoplightio/json-ref-resolver) and [@stoplight/json-ref-readers](https://github.com/stoplightio/json-ref-readers).

You shouldn't need to install this package directly unless you want to create a custom JSON refs resolver

## Installation

```bash
npm install --save @stoplight/spectral-ref-resolver

# OR

yarn add @stoplight/spectral-ref-resolver
```

## Usage

An example usage of spectral-ref-resolver together with [proxy-agent](https://www.npmjs.com/package/proxy-agent).

```js
import { createHttpAndFileResolver, Resolver } from '@stoplight/spectral-ref-resolver';
import ProxyAgent from import('proxy-agent');

module.exports = createHttpAndFileResolver({ agent: new ProxyAgent(process.env.PROXY) });
```

---
_Source: https://npm.io/package/@stoplight/spectral-ref-resolver · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
