0.1.0 • Published 7 years ago

git-read v0.1.0

Weekly downloads
5
License
MIT
Repository
github
Last release
7 years ago

git-read

Read files from git

Usage

const GitReader = require('git-read')
const gitReader = new GitReader('https://github.com/user/repo.git')

gitReader.load().then(() => {
  console.log(gitReader.read('config/user.json'))
})

// output:
// { "name": "Foo", "last_name": "Bar" }
APIWhat it does
constructor(repoPath)Builds a consumer for the specified repository
read(filePath)Returns the content of the repo file encoded by utf8
0.1.0

7 years ago