JSPM

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

NPM package for pinned github repos

Package Exports

  • gh-pinned

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

Readme

Github pinned repositories

Description

This is simple to use NPM package, which can help you to get only pinned repositories of any Github account.

Docs

Installation:

npm i gh-pinned

This package has Async function, named getPinned, which returns an array of objects with full information about each pinned repo, like on Github API, or Connection error, if you input non existing username or have no internet connection, so there are examples, how you have to use it.

Simple example for ES5+:

const { getPinned } = require("gh-pinned");

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

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

Another method to get result:

const { getPinned } = require("gh-pinned");

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

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.