deta-space-bare-client

3.0.2 • Public • Published

Deta Bare Client

API Wrapper for Deta Space, implementing the TompHTTP specifications

Usage

See the Authentication Doc for more information on how to get your access token.

bare
  .createBareClient(`http://${window.location.host}/bare/`)
  .then(async (client) => {
    const spaceFetch = detaBareClient.fetchFn(
      prompt("Deta Space Token"),
      client
    );
    spaceFetch("/apps")
      .then((res) => res.json())
      .then((payload) => {
        console.log(payload);
      })
      .catch((err) => {
        console.error(err);
      });
  });

Readme

Keywords

Package Sidebar

Install

npm i deta-space-bare-client

Weekly Downloads

2

Version

3.0.2

License

none

Unpacked Size

212 kB

Total Files

17

Last publish

Collaborators

  • endercass