# simple-gist-client

> simple gist client

Latest version **0.2.0** (published 2017-08-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install simple-gist-client
pnpm add simple-gist-client
yarn add simple-gist-client
bun add simple-gist-client
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.0 |
| Published | 2017-08-04 |
| First published | 2016-05-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 2 |
| Author | bouzuya |
| Maintainers | bouzuya |

## Links

- npm: https://www.npmjs.com/package/simple-gist-client
- Repository: https://github.com/bouzuya/simple-gist-client
- Homepage: https://github.com/bouzuya/simple-gist-client#readme
- Issues: https://github.com/bouzuya/simple-gist-client/issues
- npm.io page: https://npm.io/package/simple-gist-client

## Dependencies (1)

- [node-fetch](https://npm.io/package/node-fetch.md) ^1.7.1

## Recent versions

- 0.2.0 (latest) — 2017-08-04
- 0.1.1 — 2017-08-03
- 0.1.0 — 2016-05-11

## README

# simple-gist-client

A simple client for Gist.

## Installation

```
$ npm install simple-gist-client
```

## Usage

```ts
import { SimpleGistClient } from 'simple-gist-client';

const token = 'YOUR GITHUB TOKEN';

const data = 456;
const client = new SimpleGistClient({ token });
client
  .create(data)
  .then(id => {
    console.log(`created : https://gist.github.com/${id}`);
    return client.read(id)
      .then(data => {
        console.log(`read : ${data}`); // read : 456
        return client.update(id, 789);
      })
      .then(() => {
        console.log('updated');
        return client.read(id);
      })
      .then(data => {
        console.log(`read : ${data}`); // read : 789
        return client.delete(id);
      })
      .then(() => {
        console.log('deleted');
      });
  })
  .catch(error => {
    console.error(error);
  });
```

See: [examples/](examples/)

## Badges

[![Circle CI][circleci-badge-url]][circleci-url]

## License

[MIT](LICENSE)

## Author

[bouzuya][user] &lt;[m@bouzuya.net][email]&gt; ([http://bouzuya.net][url])

[user]: https://github.com/bouzuya
[email]: mailto:m@bouzuya.net
[url]: http://bouzuya.net
[circleci-badge-url]: https://circleci.com/gh/bouzuya/simple-gist-client.svg?style=svg
[circleci-url]: https://circleci.com/gh/bouzuya/simple-gist-client

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