fetch-github-content
v1.2.4
Published
[](https://travis-ci.org/FujiHaruka/fetch-github-content) [](https://badge.fury.io/js/fetch-github-con
Readme
fetch-github-content
Instalation
$ npm install fetch-github-contentUsage
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)