JSPM

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

NPM package with some additional opportunities for GitHub

Package Exports

  • github-pulse

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 (github-pulse) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Github additional opportunities

Node CODE SIZE

Description

This is simple to use NPM package for Node.js, which give you some more possibilities for work with GitHub

Docs

Installation:

npm i github-pulse

Testing:

npm run test

Building:

npm run build

getPinned

Async function, returns full information only about pinned user's repositories in array

First example:

const { getPinned } = require("github-pulse");

async function foo(username) {
  const pinned = await getPinned(username);
  console.log(pinned);
};

foo("octocat"); // [...]

Second example:

const { getPinned } = require("github-pulse");

getPinned("octocat")
  .then((pinned) => console.log(pinned)); // [...]

getRepoContent

Async function, returns an object with two string arrays: innerFolders and innerFiles

First example:

const { getRepoContent } = require("github-pulse");

async function bar(username, reponame) {
  const repoContent = await getRepoContent(username, reponame);
  console.log(repoContent);
};

bar("octocat", "linguist");

// {
//   innerFolders: [...],
//   innerFiles: [...],
// }

Second example:

const { getRepoContent } = require("github-pulse");

getRepoContent("octocat", "linguist")
  .then((repoContent) => console.log(repoContent));

// {
//   innerFolders: [...],
//   innerFiles: [...],
// }

License

This package is under the MIT license.

Support

If you want to help and you found any error or you know, how you can make code better, please, create an issue here or your own branch after git clone and then make a pull request. I will be very thankfull.