node library project template
npm install cloudevents-schemasnode library project template
[![license][license-img]][license-url]
[![release][release-img]][release-url]
[![semantic][semantic-img]][semantic-url]
This package publishes all versions of the [CloudEvents][] Schema JSON spec
.
├── LICENSE
├── index.js
└── schemas
├── latest.json
├── 1.0.2.json
├── 1.0.1.json
├── 1.0.0.json
└── 1.0.json
`` js
// directly require the JSON schema files
const latest = require('cloudevents-schemas/schemas/latest.json')
const versioned = require('cloudevents-schemas/schemas/1.0.json')
// require all the schemas in one object
const schemas = require('cloudevents-schemas')
/** schemas is an object with the following shape:
{
latest: ...
1.0: ...
1.0.0: ...
1.0.1: ...
1.0.2: ...
}
*/
``
[CloudEvents]: https://cloudevents.io/
----
> Author: Ahmad Nassri •
> Twitter: @AhmadNassri
[license-url]: LICENSE
[license-img]: https://badgen.net/github/license/ahmadnassri/node-cloudevents-schemas
[release-url]: https://github.com/ahmadnassri/node-cloudevents-schemas/releases
[release-img]: https://badgen.net/github/release/ahmadnassri/node-cloudevents-schemas
[semantic-url]: https://github.com/ahmadnassri/node-cloudevents-schemas/actions?query=workflow%3Arelease
[semantic-img]: https://badgen.net/badge/📦/semantically%20released/blue