Skip to content

Latest commit

 

History

History
22 lines (17 loc) · 463 Bytes

README.md

File metadata and controls

22 lines (17 loc) · 463 Bytes

@effect-use/github

GitHub API for Effect

This library provides an easy way to make GitHub API calls.

Usage:

import { GitHub, getFileContents, makeGitHubLayer } from '@effect-use/github'

pipe(
  {
    owner: 'embedded-insurance',
    repo: 'effect-use',
    path: 'packages/github/README.md',
  },
  getFileContents,
  Effect.provideLayer(makeGitHubLayer('my-github-token')),
  Effect.runPromise
)