Installations
npm install @teamteanpm2024/optio-temporibus-delectus
Developer Guide
Typescript
No
Module System
CommonJS
Node Version
20.12.2
NPM Version
10.5.0
Score
59.2
Supply Chain
96.3
Quality
79.8
Maintenance
100
Vulnerability
100
License
Releases
Unable to fetch releases
Love this project? Help keep it running — sponsor us today! 🚀
Download Statistics
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
Package Meta Information
Latest Version
1.0.5
Package Id
@teamteanpm2024/optio-temporibus-delectus@1.0.5
Unpacked Size
16.71 kB
Size
6.53 kB
File Count
10
NPM Version
10.5.0
Node Version
20.12.2
Published on
Apr 29, 2024
Total Downloads
Cumulative downloads
Total Downloads
NaN
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
37
Swagger 2.0 and OpenAPI 3.0 parser/validator
Features
- Parses Swagger specs in JSON or YAML format
- Validates against the Swagger 2.0 schema or OpenAPI 3.0 Schema
- Resolves all
$ref
pointers, including external files and URLs - Can bundle all your Swagger files into a single file that only has internal
$ref
pointers - Can dereference all
$ref
pointers, giving you a normal JavaScript object that's easy to work with - Tested in Node.js and all modern web browsers on Mac, Windows, and Linux
- Tested on over 1,500 real-world APIs from Google, Microsoft, Facebook, Spotify, etc.
- Supports circular references, nested references, back-references, and cross-references
- Maintains object reference equality —
$ref
pointers to the same value always resolve to the same object instance
Related Projects
Example
1SwaggerParser.validate(myAPI, (err, api) => { 2 if (err) { 3 console.error(err); 4 } 5 else { 6 console.log("API name: %s, Version: %s", api.info.title, api.info.version); 7 } 8});
Or use async
/await
or Promise syntax instead. The following example is the same as above:
1try { 2 let api = await SwaggerParser.validate(myAPI); 3 console.log("API name: %s, Version: %s", api.info.title, api.info.version); 4} 5catch(err) { 6 console.error(err); 7}
For more detailed examples, please see the API Documentation
Installation
Install using npm:
1npm install @teamteanpm2024/optio-temporibus-delectus
Usage
When using Swagger Parser in Node.js apps, you'll probably want to use CommonJS syntax:
1const SwaggerParser = require("@teamteanpm2024/optio-temporibus-delectus");
When using a transpiler such as Babel or TypeScript, or a bundler such as Webpack or Rollup, you can use ECMAScript modules syntax instead:
1import * as SwaggerParser from '@teamteanpm2024/optio-temporibus-delectus';
Browser support
Swagger Parser supports recent versions of every major web browser. Older browsers may require Babel and/or polyfills.
To use Swagger Parser in a browser, you'll need to use a bundling tool such as Webpack, Rollup, Parcel, or Browserify. Some bundlers may require a bit of configuration, such as setting browser: true
in rollup-plugin-resolve.
API Documentation
Full API documentation is available right here
Contributing
I welcome any contributions, enhancements, and bug-fixes. Open an issue on GitHub and submit a pull request.
Building/Testing
To build/test the project locally on your computer:
-
Clone this repo
git clone https://github.com/teamteanpm2024/optio-temporibus-delectus.git
-
Install dependencies
npm install
-
Run the build script
npm run build
-
Run the tests
npm test
-
Check the code coverage
npm run coverage
License
Swagger Parser is 100% free and open-source, under the MIT license. Use it however you want.
This package is Treeware. If you use it in production, then we ask that you buy the world a tree to thank us for our work. By contributing to the Treeware forest you’ll be creating employment for local families and restoring wildlife habitats.
Big Thanks To
Thanks to these awesome companies for their support of Open Source developers ❤

No vulnerabilities found.

No security vulnerabilities found.
Gathering detailed insights and metrics for @teamteanpm2024/optio-temporibus-delectus