oas-resolver

2.5.6 • Public • Published

oas-resolver

Usage

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 of the options object.

Package Sidebar

Install

npm i oas-resolver

Weekly Downloads

1,349,076

Version

2.5.6

License

BSD-3-Clause

Unpacked Size

28.3 kB

Total Files

5

Last publish

Collaborators

  • mermade