JSPM

@stoplight/spectral-ref-resolver

1.0.5
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1274597
  • Score
    100M100P100Q229471F
  • License Apache-2.0

Package Exports

  • @stoplight/spectral-ref-resolver
  • @stoplight/spectral-ref-resolver/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@stoplight/spectral-ref-resolver) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@stoplight/spectral-ref-resolver

This package provides Spectral-compatible bindings for @stoplight/json-ref-resolver and @stoplight/json-ref-readers.

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

Installation

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.

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

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