fluxpoint-js
TypeScript icon, indicating that this package has built-in type declarations

2.1.1 • Public • Published

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

Package Sidebar

Install

npm i fluxpoint-js

Weekly Downloads

2

Version

2.1.1

License

MIT

Unpacked Size

41.7 kB

Total Files

43

Last publish

Collaborators

  • j_ddev