Reads an OpenAPI spec file and returns the whole extracted info
$ npm i @amjs/api-openapi-reader
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: [] }
This package is integrated within @amjs/api-parser, which is highly suggested to use instead of this package on standalone.