Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github-getter

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github-getter - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

2

package.json
{
"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);

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc