New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

node-ghapi

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-ghapi - npm Package Compare versions

Comparing version 0.3.6 to 1.0.0

docma.json

6

index.js

@@ -1,3 +0,3 @@

const ghapi = require('./src/api');
module.exports = ghapi;
module.exports = {
users: require('./src/user')
}
{
"name": "node-ghapi",
"version": "0.3.6",
"description": "A predictable GitHub API wrapper for NodeJS.",
"main": "index.js",
"repository": "https://github.com/haydennyyy/ghapi",
"author": "Hayden Young <hayden@haydenbjyoung.me>",
"license": "MIT",
"private": false,
"dependencies": {
"request": "^2.87.0"
}
"name": "node-ghapi",
"version": "1.0.0",
"description": "A simple library to interact with the GitHub API",
"main": "index.js",
"scripts": {
"test": "test/index.js"
},
"author": "Hayden Young <hayden@haydenbjyoung.me> (https://haydenbjyoung.me)",
"license": "MIT",
"dependencies": {
"node-fetch": "^2.2.0"
},
"devDependencies": {
"chai": "^4.1.2",
"mocha": "^5.2.0"
}
}

@@ -1,50 +0,2 @@

# ghapi - GitHub API Wrapper
[![NPM](https://nodei.co/npm/node-ghapi.png)](https://nodei.co/npm/node-ghapi/)
## About
`ghapi` is a GitHub API wrapper built in NodeJS mainly for use with my current Discord bot project, [DevBot](https://github.com/haydennyyy/devbot).
`ghapi` does *not* however support searching your private repos at this time, nor does it support anything outside of Repos and Users. I will be making these features soon.
## Installation
To install `ghapi`, you can use [Yarn](https://yarnpkg.org) or NPM.
- `yarn add node-ghapi`
- `npm i -s node-ghapi`
## Usage
```js
var ghapi = require('node-ghapi');
ghapi.repo('haydennyyy', 'ghapi', repo => {
console.log(repo);
});
ghapi.user('haydennyyy', user => {
console.log(user);
});
```
## Documentation
Documentation for `ghapi` can be found [here](https://haydennyyy.github.io/ghapi).
## Contributing
If you're gonna contribute be sure to document everything as much as possible in JSDoc, so that I can re-build the documentation and not have to include tons.
## Features
- [ ] 100% API Coverage
- [x] Repo info
- [x] User info
- [x] Commit info
- [ ] Fork info
- [ ] Issue info
- [ ] Org info
- [ ] Asynchronous function
- [ ] Promise-based function
# node-ghapi
The second version of my library, [node-ghapi](https://npmjs.org/node-ghapi). This version uses promises.
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