File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -12,9 +12,17 @@ The library is available on the global CDN [jsDelivr:](https://www.jsdelivr.com/
12
12
To install the library locally or to use it with Node.js:
13
13
``` sh
14
14
npm install addsearch-js-client --save
15
+ ```
16
+
17
+ After installation, add the library to your JS code
18
+
19
+ ``` js
20
+ var AddSearchClient = require (' addsearch-js-client' );
21
+ ```
15
22
16
- # After installation, add the library to your JS code
17
- # var AddSearchClient = require('addsearch-js-client');
23
+ Or use import in ES6
24
+ ``` js
25
+ import AddSearchClient from ' addsearch-js-client' ;
18
26
```
19
27
20
28
#### Execute the first search query
@@ -28,7 +36,7 @@ var cb = function(res) {
28
36
console .log (res);
29
37
}
30
38
31
- // Execute search. Callback function cb will be called with search results
39
+ // Execute search. Callback function will be called with search results
32
40
client .search (' keyword' , cb);
33
41
```
34
42
You can’t perform that action at this time.
0 commit comments