Skip to content

Commit d9082b3

Browse files
committed
Remove capital S in meilisearch
1 parent 6f385e0 commit d9082b3

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,9 @@ After installing `meilisearch-js`, you must import it into your application. The
101101
Usage in an ES module environment:
102102

103103
```js
104-
import { MeiliSearch } from "meilisearch";
104+
import { Meilisearch } from "meilisearch";
105105

106-
const client = new MeiliSearch({
106+
const client = new Meilisearch({
107107
host: "http://127.0.0.1:7700",
108108
apiKey: "masterKey",
109109
});
@@ -119,7 +119,7 @@ tag:
119119
```html
120120
<script src="https://www.unpkg.com/meilisearch/dist/umd/index.min.js"></script>
121121
<script>
122-
const client = new meilisearch.MeiliSearch(/* ... */);
122+
const client = new meilisearch.Meilisearch(/* ... */);
123123
// ...
124124
</script>
125125
```
@@ -133,9 +133,9 @@ to read their documentation.
133133
Usage in a back-end node.js or another environment supporting CommonJS modules:
134134

135135
```js
136-
const { MeiliSearch } = require("meilisearch");
136+
const { Meilisearch } = require("meilisearch");
137137

138-
const client = new MeiliSearch({
138+
const client = new Meilisearch({
139139
host: "http://127.0.0.1:7700",
140140
apiKey: "masterKey",
141141
});
@@ -150,9 +150,9 @@ To use `meilisearch-js` with React Native, you must also install [react-native-u
150150
Usage in a Deno environment:
151151

152152
```js
153-
import { MeiliSearch } from "npm:meilisearch";
153+
import { Meilisearch } from "npm:meilisearch";
154154

155-
const client = new MeiliSearch({
155+
const client = new Meilisearch({
156156
host: "http://127.0.0.1:7700",
157157
apiKey: "masterKey",
158158
});
@@ -165,12 +165,12 @@ Take a look at the [playground](./playgrounds/javascript/src/meilisearch.ts) for
165165
### Add documents <!-- omit in toc -->
166166

167167
```js
168-
const { MeiliSearch } = require('meilisearch')
168+
const { Meilisearch } = require('meilisearch')
169169
// Or if you are in a ES environment
170-
import { MeiliSearch } from 'meilisearch'
170+
import { Meilisearch } from 'meilisearch'
171171

172172
;(async () => {
173-
const client = new MeiliSearch({
173+
const client = new Meilisearch({
174174
host: 'http://127.0.0.1:7700',
175175
apiKey: 'masterKey',
176176
})
@@ -374,7 +374,7 @@ controller.abort()
374374
You can provide a custom request configuration. for example, with custom headers.
375375

376376
```ts
377-
const client: MeiliSearch = new MeiliSearch({
377+
const client: Meilisearch = new Meilisearch({
378378
host: 'http://localhost:3000/api/meilisearch/proxy',
379379
requestConfig: {
380380
headers: {
@@ -391,7 +391,7 @@ const client: MeiliSearch = new MeiliSearch({
391391
You can use your own HTTP client, for example, with [`axios`](https://github.com/axios/axios).
392392

393393
```ts
394-
const client: MeiliSearch = new MeiliSearch({
394+
const client: Meilisearch = new Meilisearch({
395395
host: 'http://localhost:3000/api/meilisearch/proxy',
396396
httpClient: async (url, opts) => {
397397
const response = await $axios.request({

0 commit comments

Comments
 (0)