Socket
Socket
Sign inDemoInstall

octokit-plugin-hello-world

Package Overview
Dependencies
0
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    octokit-plugin-hello-world

Simple Octokit.js plugin for demo purposes


Version published
Weekly downloads
8
increased by60%
Maintainers
1
Install size
10.0 kB
Created
Weekly downloads
 

Readme

Source

octokit-plugin-hello-world

Simple Octokit.js plugin for demo purposes

@latest Build Status Greenkeeper

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();
// logs "Hello, world!

See @octoki/core for available APIs to create more advanced plugins.

License

MIT

Keywords

FAQs

Last updated on 24 Mar 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc