JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q27115F
  • License BSD-3-Clause

Convert OpenAPI (swagger) 2.0 / 3.0.x definition to simple JS API

Package Exports

  • openapi2js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (openapi2js) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

OpenAPI2js

Convert OpenApi (Swagger) 2.0 / 3.0.x JSON/YAML definition to simple Javascript API, complete with JSDOC, suitable for use with the Open Nitro SDK

Usage:

    var oa2js = require('openapi2js');
    oa2js.openAPI2js(inFilename,outFilename);

or

    var oa2js = require('openapi2js');
    var jsStr = oa2js.openAPI2js(swaggerObject);