Skip to content

Latest commit

 

History

History
49 lines (38 loc) · 974 Bytes

README.md

File metadata and controls

49 lines (38 loc) · 974 Bytes

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