0.1.9 • Published 1 year ago

canarado-ferret-api v0.1.9

Weekly downloads
-
License
-
Repository
-
Last release
1 year ago

Ferret-API TS Library

This is a very smol library used to communicate with the REST API located at https://ferret-api.canarado.xyz/

Install

npm i canarado-ferret-api

Usage

Get a random ferret

import { getRandomFerret } from "canarado-ferret-api";

let data = getRandomFerret();

let cdnUri = data.url; // https://ferret-api.canarado.xyz/cdn/some-uuid-string.<jpg | png>

Submit a random ferret: requires an API key, not really a public feature, but is there for completeness

import { submitFerret, setToken } from "canarado-ferret-api";
import image from "some-image.jpg";

let response = submitFerret(image, "token");

// or

setToken("token");

let response = submitFerret(image);
0.1.9

1 year ago

0.1.8

1 year ago

0.1.7

1 year ago

0.1.6

1 year ago

0.1.5

1 year ago

0.1.4

1 year ago

0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago