JSPM

random-issue

1.0.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q22555F
  • License MIT

Package Exports

  • random-issue

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (random-issue) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Get a random GitHub issue for an organisation

Build Status dependencies Status npm version

Installation

npm i random-issue

Usage

const { randomIssue } = require("random-issue");
const token = process.env.GITHUB_TOKEN;
const org = process.env.GITHUB_ORG;

(async () => {
  const issue = await randomIssue(token, org);
  console.log(JSON.stringify(issue));
})();