ref-resolver

1.0.6 • Public • Published

JSON $ref resolver utility.

This is a small utility function that allows you to send in a JSON file and resolve all the $ref references I've seen quite a few libraries that do this and they have a lot of dependencies and seemed unnecessarily complex (just my opinion)

How to get started

  1. Install the package
npm i ref-resolver

and require it

const resolver = require("ref-resolver")
  1. Initialize the resolver with your JSON object
resolver.init(<your JSON goes here>)
  1. Call the resolve method
(async ()=>{
    const { result } = await resolver.resolve()
})()

Contributing

Please feel free to raise issues and PRs to this repository with improvements and suggestions.

Readme

Keywords

none

Package Sidebar

Install

npm i ref-resolver

Weekly Downloads

0

Version

1.0.6

License

ISC

Unpacked Size

3.17 kB

Total Files

4

Last publish

Collaborators

  • hmeister10