This package has been deprecated

Author message:

We've changed domains! See https://npm.im/yiff-rocks, or https://yiff.rocks

furry.services
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

Furry.Services API

This is an api wrapper built for the furry.services redirection api.

The official documentation for this can be found here.

JavaScript Example:

const FurryServicesAPI = require("furry.services");
// User agent (first param) is not required.
const FSAPI = new FurryServicesAPI("SomeUserAgent/1.0.0");
FSAPI.shortenURL("https://furry.bot").then(short => console.log(short));

TypeScript Example:

import FurryServicesAPI from "furry.services";
// User agent (first param) is not required.
const FSAPI = new FurryServicesAPI("SomeUserAgent/1.0.0");
FSAPI.shortenURL("https://furry.bot").then(short => console.log(short));

The return of the functions is this structure (using the class as an example):

class ShortURL {
    id: string;
    url: string;
    linkNumber: number;
    createdTimestamp: number;
    created: string;
    length: number;
    link: string;
}

id is the code of the short link, url is where it goes, linkNumber is our internal database number for this link, createdTimestamp is the epoch at which it was created, created is the same as last, but an ISO string, length is the length of the url, and link is the full redirect link (includes https://r.furry.services).

/furry.services/

    Package Sidebar

    Install

    npm i furry.services

    Weekly Downloads

    0

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    15.8 kB

    Total Files

    9

    Last publish

    Collaborators

    • donovan_dmc