# ea-git

> git helper api endpoint express

Latest version **1.0.8** (published 2018-09-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install ea-git
pnpm add ea-git
yarn add ea-git
bun add ea-git
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.8 |
| Published | 2018-09-22 |
| First published | 2017-12-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 13 |
| Unpacked size | 26.9 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 1 |
| Author | hagb4rd@gmail.com |
| Maintainers | hagb4rd |
| Keywords | git, gist, api, paste, tools, express, endpoint, router |

## Links

- npm: https://www.npmjs.com/package/ea-git
- Repository: https://github.com/hagb4rd/ea-git
- Homepage: https://github.com/hagb4rd/ea-git#readme
- Issues: https://github.com/hagb4rd/ea-git/issues
- npm.io page: https://npm.io/package/ea-git

## Dependencies (13)

- [opn](https://npm.io/package/opn.md) ^5.4.0
- [express](https://npm.io/package/express.md) ^4.16.3
- [request](https://npm.io/package/request.md) ^2.88.0
- [minimist](https://npm.io/package/minimist.md) ^1.2.0
- [form-data](https://npm.io/package/form-data.md) ^2.3.2
- [mime-types](https://npm.io/package/mime-types.md) ^2.1.17
- [node-fetch](https://npm.io/package/node-fetch.md) ^2.2.0
- [js-beautify](https://npm.io/package/js-beautify.md) ^1.7.5
- [cli-highlight](https://npm.io/package/cli-highlight.md) ^2.0.0
- [cookie-parser](https://npm.io/package/cookie-parser.md) ^1.4.3
- [connect-sqlite3](https://npm.io/package/connect-sqlite3.md) ^0.9.11
- [express-session](https://npm.io/package/express-session.md) ^1.15.6
- [request-promise](https://npm.io/package/request-promise.md) ^4.2.2

## Alternatives

- [express-promise-router](https://npm.io/package/express-promise-router.md) — 736.1K weekly downloads
- [next-usequerystate](https://npm.io/package/next-usequerystate.md) — 29.8K weekly downloads
- [@bitkyc08/opencodex](https://npm.io/package/@bitkyc08/opencodex.md) — 4.6K weekly downloads
- [lynkr](https://npm.io/package/lynkr.md) — 575 weekly downloads
- [baremetal.js](https://npm.io/package/baremetal.js.md) — 42 weekly downloads

## Recent versions

- 1.0.8 (latest) — 2018-09-22
- 1.0.7 — 2018-09-22
- 1.0.2 — 2017-12-10

## README

# ea-git

see also https://www.npmjs.com/package/ea-session-storage

`npm install --save ea-git`

Setup environment variables:

`GITHUB_CLIENT_ID`

`GITHUB_CLIENT_SECRET`

## Usage with express
```javascript
var http = require('http');
var express = require('express');
var git = require('ea-git');

var app=express();
var PORT=3000;

//bind to some route, providing a session secret, and cookie expiration date
app.use('/github', git({sessionSecret:'hello kitty',expireDays:90}));

//start server 
http.createServer(app).listen(PORT);
```
## In the browser
```html
<!-- Get (automatically generated) Client API -->
<a href="http://localhost:3000/github/login">github login</a>
```

---
_Source: https://npm.io/package/ea-git · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
