octokit-plugin-hello-world
Simple Octokit.js plugin for demo purposes
Usage
Browsers
|
Load octokit-plugin-hello-world and @octokit/core (Or others such as @octokit/rest ) directly from cdn.pika.dev
<script type="module">
import { Octokit } from "https://cdn.pika.dev/@octokit/core";
import { helloWorld } from "https://cdn.pika.dev/octokit-plugin-hello-world";
</script>
|
---|
Node
|
Install with npm install octokit-plugin-hello-world
const { Octokit } = require("@octokit/core");
const { helloWorld } = require("octokit-plugin-hello-world");
|
---|
const MyOctokit = Octokit.plugin(helloWorld);
const octokit = new MyOctokit();
octokit.helloWorld();
See @octoki/core
for available APIs to create more advanced plugins.
License
MIT