cloudevents-schemas

1.1.5 • Public • Published

Node Lib Template

node library project template

license release semantic

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

How

// 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: ...
  }
*/

Author: Ahmad Nassri • Twitter: @AhmadNassri

Readme

Keywords

Package Sidebar

Install

npm i cloudevents-schemas

Weekly Downloads

0

Version

1.1.5

License

MIT

Unpacked Size

12.6 kB

Total Files

7

Last publish

Collaborators

  • ahmadnassri