-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
README.md.js
31 lines (23 loc) · 1.03 KB
/
README.md.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import { File } from '@asyncapi/generator-react-sdk';
export default function readmeFile({ asyncapi }) {
return <File name={'README.md'}>
{
`
<h1 align="center">TypeScript/Node.js NATS client wrapper</h1>
<p align="center">
<em>This is a generated TypeScript/Node.js NATS client for the application - ${asyncapi.info().title() }.</em>
</p>
**We highly recommend you do not modify this client in any way since it is build for you to re-generate it when your AsyncAPI document changes.**
${asyncapi.info().description() || ''}
You can find the general information about the different aspects of this library by checking [the documentation folder](./docs/general.md).
An [API document](./API.md) have also been generated which contains all the possible configurations and usages this client supports.
## Example
\`\`\`ts
import * as GeneratedClient from "./nats-client";
const natsClient = new GeneratedClient.NatsAsyncApiClient();
natsClient.connect(...).catch((e) => {});
\`\`\`
`
}
</File>;
}