Skip to content

Commit 7392e4b

Browse files
authored
docs(README): update examples to use ESM (#611)
1 parent 069235f commit 7392e4b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ Node
3333
Install with `npm install @octokit/core @octokit/plugin-paginate-rest`. Optionally replace `@octokit/core` with a core-compatible module
3434

3535
```js
36-
const { Octokit } = require("@octokit/core");
37-
const {
36+
import { Octokit } from "@octokit/core";
37+
import {
3838
paginateRest,
3939
composePaginateRest,
40-
} = require("@octokit/plugin-paginate-rest");
40+
} from "@octokit/plugin-paginate-rest";
4141
```
4242

4343
</td></tr>

0 commit comments

Comments
 (0)