@ibrahim-rahhal/github-search-api
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

Github Search API

Simple packages that wrap Github Search API, It also provides nice functionality like caching/ debouncing & ready to uses React hook

Installation

npm i --save @ibrahim-rahhal/github-search-api

Usage

import { useGithubSearch } from '@ibrahim-rahhal/github-search-api';
export const MyComponent = () => {
const { data, loading, error, hasMore } = useGithubSearch(
        'repositories',
        {
            disableCache: false,
            query: query as string,
            page,
            per_page: 20
        }
    );
 return <h1>test</h1>;
}

Readme

Keywords

none

Package Sidebar

Install

npm i @ibrahim-rahhal/github-search-api

Weekly Downloads

1

Version

1.0.2

License

ISC

Unpacked Size

11.5 kB

Total Files

16

Last publish

Collaborators

  • ibrahim-rahhal