You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+19-12
Original file line number
Diff line number
Diff line change
@@ -48,8 +48,7 @@ Node
48
48
Install with <code>npm install @octokit/core</code>
49
49
50
50
```js
51
-
const { Octokit } =require("@octokit/core");
52
-
// or: import { Octokit } from "@octokit/core";
51
+
import { Octokit } from"@octokit/core";
53
52
```
54
53
55
54
</td></tr>
@@ -342,8 +341,9 @@ This is useful if you build reusable [plugins](#plugins).
342
341
If you would like to make the log level configurable using an environment variable or external option, we recommend the [console-log-level](https://github.com/watson/console-log-level) package. Example
## Build your own Octokit with Plugins and Defaults
420
423
421
424
You can build your own Octokit class with preset default options and plugins. In fact, this is mostly how the `@octokit/<context>` modules work, such as [`@octokit/action`](https://github.com/octokit/action.js):
0 commit comments