From 7392e4b23f245498c88ac8a5c351424fc367278e Mon Sep 17 00:00:00 2001 From: wolfy1339 <4595477+wolfy1339@users.noreply.github.com> Date: Fri, 19 Apr 2024 17:22:14 -0400 Subject: [PATCH] docs(README): update examples to use ESM (#611) --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 3ac766a3..5443892b 100644 --- a/README.md +++ b/README.md @@ -33,11 +33,11 @@ Node Install with `npm install @octokit/core @octokit/plugin-paginate-rest`. Optionally replace `@octokit/core` with a core-compatible module ```js -const { Octokit } = require("@octokit/core"); -const { +import { Octokit } from "@octokit/core"; +import { paginateRest, composePaginateRest, -} = require("@octokit/plugin-paginate-rest"); +} from "@octokit/plugin-paginate-rest"; ```