Skip to content

Commit

Permalink
docs(README): replace CJS with ESM import (#403)
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfy1339 committed Feb 23, 2024
1 parent d73dee6 commit db5708e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ Node
Install with <code>npm install @octokit/request-error</code>

```js
const { RequestError } = require("@octokit/request-error");
// or: import { RequestError } from "@octokit/request-error";
import { RequestError } from "@octokit/request-error";
```

</td></tr>
Expand Down

0 comments on commit db5708e

Please sign in to comment.