1.0.0 • Published 1 year ago

fast-io v1.0.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
1 year ago

Fast.io JavaScript SDK

A TS wrapper around the Fast.io API

Installation

npm i fast

Usage

// Import the lib
import FastIO from 'fast';

// Create a new session
const fast = new FastIO();

// Authenticate future requests
await fast.authenticate('<token>');

// Retrieve user info from the API
const info = await fast.user.getInfo();

// Log the JSON results to the console
console.log('your user info:', info);