2.0.0 • Published 6 years ago
octokit-plugin-hello-world v2.0.0
octokit-plugin-hello-world
Simple Octokit.js plugin for demo purposes
Usage
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.