0.1.9 • Published 2 years ago

canarado-ferret-api v0.1.9

Weekly downloads
-
License
-
Repository
-
Last release
2 years 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

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago