gh-raw
Simply get raw files of github repository
Install
$ npm install gh-raw
Usage
if you want to get file of github repository
const ghRaw =ghRaw
you can also get file from past commit
const ghRaw =ghRaw
How it works?
it use https://raw.githubusercontent.com/
API
ghRaw.get(path, [options])
options
is required without extend
because repository
should be specified.
ghRaw// specific branchghRaw// specific commitghRaw
ghRaw.extend(options)
ghRaw is extendable. it would be convenient to extend with reposotory
option.
const rawRepo = ghRawrawRepoconst sampleRepo = rawReposampleRepo
options
repository: 'zeakd/gh-raw' // default: undefined,blob: 'master' // default: 'master'. alias : ['branch', 'commit']