1.0.3 • Published 8 years ago

get-github-file v1.0.3

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

get-github-file

Get a file from a github repository

Installation

Grab it from npm

npm install get-github-file

Usage

const getGithubFile = require('get-github-file');
getGithubFile('nerdlabs/get-github-file/package.json')
  .then(buffer => console.log(buffer.toString('utf-8')));

Parameters

getGithubFile(uri: string, options?: Options): Promise<Buffer>

uri: A string to identify a file in a github repository user/repo/path/to/file.txt

options:


Built by (c) nerdlabs. Released under the MIT license.

1.0.4-2

8 years ago

1.0.4-1

8 years ago

1.0.4-0

8 years ago

1.0.3

8 years ago

1.0.2-0

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago