Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jeevitha011 committed May 14, 2024
1 parent 44403ec commit ce91110
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,14 @@ $ npm install @cap-js/asyncapi

### Usage

```sh
```js
const cds = require('@sap/cds')
const { compile } = require('@cap-js/asyncapi')
```
```sh
compile(csn)

```js
const csn = await cds.load(cds.env.folders.srv)
const asyncapiDocument = compile(csn)
```

## Contributing
Expand Down

0 comments on commit ce91110

Please sign in to comment.