Simple Octokit.js plugin for demo purposes
MIT License
Simple Octokit.js plugin for demo purposes
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>
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();
// logs "Hello, world!
See @octoki/core
for available APIs to create more advanced plugins.