JSPM

@amjs/api-openapi-reader

0.1.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q29929F
  • License MIT

Reads an OpenAPI spec file and returns the whole extracted info

Package Exports

  • @amjs/api-openapi-reader

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 (@amjs/api-openapi-reader) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@amjs/api-openapi-reader 0.1.2

Statements Branches Functions Lines

Reads an OpenAPI spec file and returns the whole extracted info

Installation

$ npm i @amjs/api-openapi-reader

Usage

const AmjsApiOpenApiReader = require('@amjs/api-openapi-reader');

const reader = new AmjsApiOpenApiReader('api-spec-path.yaml');
const output = reader.read().parse();
console.log(output); // { collections: [], items: [], paths: [] }

Notice

This package is integrated within @amjs/api-parser, which is highly suggested to use instead of this package on standalone.