This commit modifies the README to show new API usage for the `HTTPReceiver` and `CloudEvent` classes, and updates the examples to use this as well. Overall structure and content has been modified to look more like the sdk-go README. Fixes: https://github.com/cloudevents/sdk-javascript/issues/128 Signed-off-by: Lance Ball <lball@redhat.com> |
||
---|---|---|
.. | ||
src | ||
README.md | ||
package.json | ||
prettier.config.js | ||
tsconfig.json | ||
tslint.json |
README.md
Typescript Example
The types are available since v1.0.0
How To Start
Install and transpile:
npm install
Then, start
npm start
See your event payload here, at requestbin