This package has been deprecated

Author message:

Please use @metahkg/api

metahkg-api
TypeScript icon, indicating that this package has built-in type declarations

3.3.1 • Public • Published

Metahkg Api

Wrapper for the metahkg server.

Install

yarn add metahkg-api

Usage

import Api from "metahkg-api";

const api = Api({
    // choose a server or leave blank for /
    baseUrl: "https://metahkg.org",
    // user jwt token, leave blank if not logged in
    token: "eyfcsgbsaabbdwqjog",
    // action to do upon new token received in headers
    setToken: (token: string) => {
        // set token
        localStorage.setItem("token", token);
    },
});

Readme

Keywords

none

Package Sidebar

Install

npm i metahkg-api

Weekly Downloads

6

Version

3.3.1

License

MIT

Unpacked Size

156 kB

Total Files

207

Last publish

Collaborators

  • wc-yat