github-getter
Advanced tools
Comparing version 1.0.2 to 1.0.3
{ | ||
"name": "github-getter", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Quick and easy github file retrieval", | ||
@@ -5,0 +5,0 @@ "main": "lib/gHGetter.js", |
@@ -29,8 +29,27 @@ [![codecov.io](https://codecov.io/github/des-des/github-getter/coverage.svg?branch=master)](https://codecov.io/github/des-des/github-getter?branch=master) [![bitHound Overall Score](https://www.bithound.io/github/des-des/github-getter/badges/score.svg)](https://www.bithound.io/github/des-des/github-getter) [![bitHound Dependencies](https://www.bithound.io/github/des-des/github-getter/badges/dependencies.svg)](https://www.bithound.io/github/des-des/github-getter/master/dependencies/npm) [![bitHound Dev Dependencies](https://www.bithound.io/github/des-des/github-getter/badges/devDependencies.svg)](https://www.bithound.io/github/des-des/github-getter/master/dependencies/npm) | ||
* call your `GHFile` object(s) with the following paramiter | ||
```javascript | ||
{ | ||
getData: fileDataString => /*Your code here!*/ | ||
} | ||
import { gHUser, gHRepo } from 'github-getter.js'; | ||
gHUser('dwyl', true)({ | ||
getRepos: (err, repos) => { | ||
repos.adoro({ // my favorate dwyl repo ;) | ||
getReadme: (err, readme) => readme({ | ||
getData: console.log | ||
}) | ||
}); | ||
} | ||
}); | ||
gHRepo('des-des/aibox')({ | ||
getFiles: (err, files) => { | ||
files['.babelrc']({ | ||
getData: (err, fileData) => console.log(fileData) | ||
}); | ||
}, | ||
getReadme: (err, readme) => readme({ | ||
getData: console.log | ||
}) | ||
}); | ||
``` | ||
@@ -37,0 +56,0 @@ see src/index.es6 for an example! |
@@ -69,3 +69,3 @@ var test = require('tape'); | ||
var repoName = 'test-repo'; | ||
var sha = 'test-sha' | ||
var sha = 'test-sha'; | ||
@@ -72,0 +72,0 @@ nocks.nockCommitRequest(repoName, sha, 404); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13151
58