fetch-github-content

1.2.4 • Public • Published

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)

Readme

Keywords

Package Sidebar

Install

npm i fetch-github-content

Weekly Downloads

2

Version

1.2.4

License

MIT

Unpacked Size

3.79 kB

Total Files

7

Last publish

Collaborators

  • fuji_haruka