open-index/open-npm huggingface dataset:
npm package: @stoplight/http-ui
Description: UI components for displaying Http Services, Operations, and Requests.
Author: Stoplight
Latest version: 2.1.1

# HTTP UI

<!-- BADGES -->

[![npm version](https://badge.fury.io/js/%40stoplight%2Fhttp-ui.svg)](https://badge.fury.io/js/%40stoplight%2Fhttp-ui)

<!-- SUMMARY -->

- Explore the components: [Storybook](https://stoplightio.github.io/http-ui)
- View the changelog: [Releases](https://github.com/stoplightio/http-ui/releases)

### Features

- A component for displaying http operations
- A component for displaying and sending http requests
- A component for displaying http services

### Installation

Supported in modern browsers and node.

```bash
# latest stable
yarn add @stoplight/http-ui
```

### Usage

```ts
import { HttpOperation, HttpRequest, HttpService } from '@stoplight/http-ui';

// ...example
```

### Contributing

1. Clone repo.
2. Create / checkout `feature/{name}`, `chore/{name}`, or `fix/{name}` branch.
3. Install deps: `yarn`.
4. Make your changes.
5. Run tests: `yarn test.prod`.
6. Stage relevant files to git.
7. Commit: `yarn commit`. _NOTE: Commits that don't follow the [conventional](https://github.com/marionebl/commitlint/tree/master/%40commitlint/config-conventional) format will be rejected. `yarn commit` creates this format for you, or you can put it together manually and then do a regular `git commit`._
8. Push: `git push`.
9. Open PR targeting the `master` branch.
npm package: @stoplight/json-ref-readers
Description: Set of utilities for reading external json references
Author: Stoplight
Latest version: 1.2.2

# json-ref-readers
Set of utilities for reading external json references.

## Installation

```bash
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.

```ts
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 },
  },
});
```