18
18
### Node.js
19
19
20
20
- Supports Node.js 7.10.1 and newer.
21
- - Refer to [ this example] ( examples/node/js_node_7_up ) for help.
21
+ - Refer to [ this example] ( https://github.com/serpapi/serpapi-javascript/tree/master/ examples/node/js_node_7_up) for help.
22
22
23
23
``` bash
24
24
npm install serpapi
@@ -40,7 +40,7 @@ getJson({
40
40
41
41
- If you prefer using the ` import ` syntax and top-level ` await ` , you need to use
42
42
at least Node.js 14.8.0.
43
- - Refer to [ this example] ( examples/node/js_node_14_up ) for help.
43
+ - Refer to [ this example] ( https://github.com/serpapi/serpapi-javascript/tree/master/ examples/node/js_node_14_up) for help.
44
44
45
45
You will need to add ` "type": "module" ` to your ` package.json ` :
46
46
@@ -66,7 +66,7 @@ console.log(response);
66
66
67
67
- Import directly from deno.land.
68
68
- Usage is otherwise the same as above.
69
- - Refer to [ this example] ( examples/deno ) for help.
69
+ - Refer to [ this example] ( https://github.com/serpapi/serpapi-javascript/tree/master/ examples/deno) for help.
70
70
71
71
``` ts
72
72
import { getJson } from " https://deno.land/x/serpapi/mod.ts" ;
@@ -113,9 +113,9 @@ await getJson({ engine: "google", api_key: API_KEY_2, q: "coffee" }); // API_KEY
113
113
Built-in pagination is not supported. Please refer to our pagination examples
114
114
for a manual approach:
115
115
116
- - [ Pagination example (Node.js >= 7)] ( examples/node/js_node_7_up/pagination_example.js )
117
- - [ Pagination example (Node.js >= 14)] ( examples/node/js_node_14_up/pagination_example.js )
118
- - [ Pagination example (Deno)] ( examples/deno/pagination_example.ts )
116
+ - [ Pagination example (Node.js >= 7)] ( https://github.com/serpapi/serpapi-javascript/tree/master/ examples/node/js_node_7_up/pagination_example.js)
117
+ - [ Pagination example (Node.js >= 14)] ( https://github.com/serpapi/serpapi-javascript/tree/master/ examples/node/js_node_14_up/pagination_example.js)
118
+ - [ Pagination example (Deno)] ( https://github.com/serpapi/serpapi-javascript/tree/master/ examples/deno/pagination_example.ts)
119
119
120
120
## Functions
121
121
0 commit comments