
Security News
Deno 2.6 + Socket: Supply Chain Defense In Your CLI
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.
This project aims to provide a user-friendly interface to various API description formats, like Open API (Swagger) and API Blueprint, to efficiently build cross-format tools using common sense components. The overwhelming majority of use cases involve reading an API description and taking some (read-only) action:
To support these use cases while remaining simple, this library is read-only and cannot be used to edit an API description. This means it is purely a library to consume API description formats and cannot be used to convert between formats. The goals of this library are:
Currently supported API formats:
Due to the nature of various API description formats supporting different features, this library will attempt to massage various pieces to fit into common sense components without losing too much in translation. If you need 100% 1:1 accuracy, you may be better off parsing the format of your choice manually.
Note: This library is built using modern Javascript functionality without a transpiler, and thus requires either a recent Node.js version (6.0+) or to be run through a transpiler (e.g. Webpack + Babel for usage in a browser) before being used.
The Mateo API description library can be installed via npm:
npm install --save mateo
Once installed, you can easily parse any supported API format:
import Mateo from 'mateo';
// Usage via callbacks
Mateo.parse('...', (err, api) => {
if (err) {
console.log(err);
return;
}
console.log(api);
});
// Usage via promises
Mateo.parse('...').then((api) => {
console.log(api);
}).catch((err) => {
console.log(err);
})
MateoMateo.parse(apiDescription, [options], [done])Parse an API description from a string. The api is an Api instance. If no callback done function is given, then the promise-based interface is used and a promise is returned.
const options = {
filename: 'foo.yaml'
};
Mateo.parse('...', options, (err, api) => { /* ... */ });
Mateo.parseFile(filename, [done])Parse an API description from a file. The api is an Api instance.
Mateo.parseFile('.../file.yaml', (err, api) => { /* ... */ });
More documentation coming soon.
FAQs
Simple API Description interface
The npm package mateo receives a total of 8 weekly downloads. As such, mateo popularity was classified as not popular.
We found that mateo demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.

Security News
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.