# oas-resolver-browser

> Resolve external $refs in OpenAPI (swagger) 2.0 / 3.x definitions

Latest version **2.5.6** (published 2022-05-02) · BSD-3-Clause license · 0 weekly downloads

## Install

```sh
npm install oas-resolver-browser
pnpm add oas-resolver-browser
yarn add oas-resolver-browser
bun add oas-resolver-browser
```

Provides the command `resolve`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.5.6 |
| Published | 2022-05-02 |
| First published | 2020-06-16 |
| Weekly downloads | 0 |
| License | BSD-3-Clause |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 6 |
| Unpacked size | 28.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 747 |
| Author | Mike Ralphson |
| Maintainers | umeshp7, vshingala |
| Keywords | openapi, swagger, oas, resolver, resolution, ref, json-pointer, json-ref |

## Links

- npm: https://www.npmjs.com/package/oas-resolver-browser
- Repository: https://github.com/Mermade/oas-kit
- Homepage: https://github.com/Mermade/oas-kit#readme
- Issues: https://github.com/mermade/oas-kit/issues
- Funding: https://github.com/Mermade/oas-kit?sponsor=1
- npm.io page: https://npm.io/package/oas-resolver-browser

## Dependencies (6)

- [yaml](https://npm.io/package/yaml.md) ^1.10.0
- [yargs](https://npm.io/package/yargs.md) ^17.0.1
- [reftools](https://npm.io/package/reftools.md) ^1.1.9
- [node-fetch-h2](https://npm.io/package/node-fetch-h2.md) ^2.3.0
- [oas-kit-common](https://npm.io/package/oas-kit-common.md) ^1.0.8
- [path-browserify](https://npm.io/package/path-browserify.md) ^1.0.1

## Alternatives

- [update-check](https://npm.io/package/update-check.md) — 4.0M weekly downloads
- [react-native-onesignal](https://npm.io/package/react-native-onesignal.md) — 134.5K weekly downloads
- [react-redux-toastr](https://npm.io/package/react-redux-toastr.md) — 33.7K weekly downloads
- [@nocobase/plugin-notification-manager](https://npm.io/package/@nocobase/plugin-notification-manager.md) — 2.0K weekly downloads
- [react-simple-toasts](https://npm.io/package/react-simple-toasts.md) — 1.9K weekly downloads

## Recent versions

- 2.5.6 (latest) — 2022-05-02
- 2.5.2 — 2021-06-16
- 2.5.1 — 2021-01-28
- 2.5.0 — 2020-09-22
- 2.3.3 — 2020-06-16

## README

# oas-resolver
Forked from https://github.com/Mermade/oas-kit

v2.5.0 
- Sync with https://github.com/Mermade/oas-kit v2.5.0

## Usage

```js
const yaml = require('yaml');
const input = yaml.parse(str);
const source = url; // or filename
resolver.resolve(input,source,options)
.then(function(options){
  fs.writeFileSync(outputFile,yaml.stringify(options.openapi),'utf8');
})
.catch(function(ex){
  // ...
});
```

See here for complete [documentation](/docs/options.md) of the `options` object.

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