Skip to content

FluxpointDev/fluxpoint-js

Repository files navigation

fluxpoint-js

Fluxpoint-JS is the offical Fluxpoint JavaScript api library built for the fluxpoint api! https://fluxpoint.dev

Docs

https://fluxpointdev.github.io/fluxpoint-js/

JavaScript

const { FluxpointClient } = require("fluxpoint-js");
const client = new FluxpointClient({
  token: "token",
});

const main = async () => {
  console.log(await client.sfw.images.getNeko());
};

main().catch((e) => {
  console.log(e);
});

TypeScript

import { FluxpointClient, IResponse, IErrorResponse } from "fluxpoint-js";

const client: FluxpointClient = new FluxpointClient();

const main: Function = async () => {
  console.log(await client.sfw.gifs.getNeko());
};

main().catch((e: IErrorResponse) => {
  console.log(e);
});

CoffeeScript

{ FluxpointClient } = require "fluxpoint-js"
client = new FluxpointClient { token: "token" }

main = () ->
     console.log await client.sfw.gifs.getNeko()


main().catch (e) ->
     console.log e

About

An API Library for the fluxpoint api

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published