Skip to content

Latest commit

 

History

History

github

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

@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
)