# jsfycat

> A Node.js wrapper for the Gfycat API using `async/await` functionality.

Latest version **1.0.2** (published 2022-05-19) · GPL-3.0 license · 0 weekly downloads

## Install

```sh
npm install jsfycat
pnpm add jsfycat
yarn add jsfycat
bun add jsfycat
```

## 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.2 |
| Published | 2022-05-19 |
| First published | 2020-06-04 |
| Weekly downloads | 0 |
| License | GPL-3.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 41.5 KB |
| Known vulnerabilities | 0 (+24 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Ben Silverman |
| Maintainers | silverben10 |
| Keywords | gfycat, api, javascript, node |

## Links

- npm: https://www.npmjs.com/package/jsfycat
- Repository: https://github.com/silverben10/jsfycat
- Homepage: https://github.com/silverben10/jsfycat#readme
- Issues: https://github.com/silverben10/jsfycat/issues
- npm.io page: https://npm.io/package/jsfycat

## Dependencies (2)

- [mime](https://npm.io/package/mime.md) ^3.0.0
- [axios](https://npm.io/package/axios.md) ^0.27.2

## Alternatives

- [@expo/fingerprint](https://npm.io/package/@expo/fingerprint.md) — 6.2M weekly downloads
- [@azure/monitor-opentelemetry-exporter](https://npm.io/package/@azure/monitor-opentelemetry-exporter.md) — 850.0K weekly downloads
- [@azure/monitor-opentelemetry](https://npm.io/package/@azure/monitor-opentelemetry.md) — 624.0K weekly downloads
- [@posthog/ai](https://npm.io/package/@posthog/ai.md) — 423.3K weekly downloads
- [fakefilter](https://npm.io/package/fakefilter.md) — 63.9K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2022-05-19
- 1.0.1 — 2020-06-04
- 1.0.0 — 2020-06-04

## README

# jsfycat

A Node.js wrapper for the [Gfycat API](https://developers.gfycat.com/) using `async/await` functionality.

## Installation

**NPM**

```
npm install jsfycat
```

**Yarn**

```
yarn add jsfycat
```

## Usage

First, obtain a client ID and client secret from the [Gfycat Developer Portal](https://developers.gfycat.com/signup/#/apiform).

**Store these client credentials in a secure location.**

```js
const GfycatClient = require("jsfycat");

async function main() {
  const gfycat = new GfycatClient({
    clientId: "clientId goes here",
    clientSecret: "client secret goes here.",
  });
}

main();
```

## Methods

### Authenticate

Returns an API access token, valid for 1 hour.

```js
await gfycat.authenticate();
```

### Get Gfycat Information

Returns a JSON containing information about a specified gfycat.

```js
gfyInfo = await gfycat.getGfycatInfo("Gfyname goes here.");
```

### Upload from URL

Uploads a remote file to Gfycat by specifying its URL.

```js
urlUploadRes = await gfycat.uploadFromUrl("URL goes here.");
```

### Upload from file

Uploads a local file to Gfycat.

```js
fileUploadRes = await gfycat.uploadFromFile("Filepath goes here.");
```

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