Socket
Socket
Sign inDemoInstall

@stoplight/json-ref-readers

Package Overview
Dependencies
8
Maintainers
22
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @stoplight/json-ref-readers

Set of utilities for reading external json references


Version published
Weekly downloads
481K
increased by9.58%
Maintainers
22
Install size
205 kB
Created
Weekly downloads
 

Readme

Source

json-ref-readers

Set of utilities for reading external json references.

Installation

yarn add @stoplight/json-ref-readers

Usage

The library exports two functions: resolveHttp and resolveFile. Both take uri.URI and resolve to a string containing requested resource.

import { Resolver } from '@stoplight/json-ref-resolver';
import { resolveFile, resolveHttp } from '@stoplight/json-ref-readers';

const httpAndFileResolver = new Resolver({
  resolvers: {
    https: { resolve: resolveHttp },
    http: { resolve: resolveHttp },
    file: { resolve: resolveFile },
  },
});

FAQs

Last updated on 15 Feb 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc