@amjs/api-openapi-reader

0.1.2 • Public • Published

@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.

/@amjs/api-openapi-reader/

    Package Sidebar

    Install

    npm i @amjs/api-openapi-reader

    Weekly Downloads

    3

    Version

    0.1.2

    License

    MIT

    Unpacked Size

    38.3 kB

    Total Files

    22

    Last publish

    Collaborators

    • amjs