Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shinnn/get-github-event-types
Get all Event types of the Github API from the API reference
https://github.com/shinnn/get-github-event-types
Last synced: 27 days ago
JSON representation
Get all Event types of the Github API from the API reference
- Host: GitHub
- URL: https://github.com/shinnn/get-github-event-types
- Owner: shinnn
- License: mit
- Created: 2016-11-17T09:56:44.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2016-11-17T10:34:28.000Z (almost 8 years ago)
- Last Synced: 2024-09-14T21:48:51.266Z (2 months ago)
- Language: JavaScript
- Size: 2.93 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# get-github-event-types
[![NPM version](https://img.shields.io/npm/v/get-github-event-types.svg)](https://www.npmjs.com/package/get-github-event-types)
[![Build Status](https://travis-ci.org/shinnn/get-github-event-types.svg?branch=master)](https://travis-ci.org/shinnn/get-github-event-types)
[![Coverage Status](https://img.shields.io/coveralls/shinnn/get-github-event-types.svg)](https://coveralls.io/github/shinnn/get-github-event-types?branch=master)
[![dependencies Status](https://david-dm.org/shinnn/get-github-event-types/status.svg)](https://david-dm.org/shinnn/get-github-event-types)
[![devDependencies Status](https://david-dm.org/shinnn/get-github-event-types/dev-status.svg)](https://david-dm.org/shinnn/get-github-event-types?type=dev)A [Node](https://nodejs.org/) module to get [all Event types of the Github API](https://developer.github.com/v3/activity/events/types/#event-types--payloads) from [the API reference](https://developer.github.com/v3/activity/events/types/)
```javascript
const getGithubEventTypes = require('get-github-event-types');getGithubEventTypes().then(eventTypes => {
eventTypes; //=> ['CommitCommentEvent', 'CreateEvent', 'DeleteEvent', ...]
});
```## Installation
[Use npm.](https://docs.npmjs.com/cli/install)
```
npm install get-github-event-types
```## API
```javascript
const getGithubEventTypes = require('get-github-event-types');
```### getGithubEventTypes([*options*])
*options*: `Object` ([`Request` options](https://github.com/request/request#requestoptions-callback))
Return: `Promise` of `Array`## License
Copyright (c) 2016 [Shinnosuke Watanabe](https://github.com/shinnn)
Licensed under [the MIT License](./LICENSE).