Skip to content

FujiHaruka/fetch-github-content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fetch-github-content

Build Status npm version

Instalation

$ npm install fetch-github-content

Usage

const fetchGhContent = require('fetch-github-content')
fetchGhContent({
  owner: 'FujiHaruka',
  repo: 'fetch-github-content',
  path: 'package.json',
  token: 'xxx', // (Optional) Access token
  ref: 'xxx', // (Optional) The name of the commit/branch/tag
  json: true, // (Optional) if true, returns JSON.parse(content)
}).then(console.log)

About

Node.js library of GitHub API wrapper just to fetch files

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published