deta-space-client
TypeScript icon, indicating that this package has built-in type declarations

2.2.2 • Public • Published

Deta Space Client

An fetch function for deta space

Usage

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

import { fetchFn } from "deta-space-client";

// Provide your access token
const fetchFromSpace = fetchFn(process.env.DETA_SPACE_TOKEN);

fetch("/instances").then((response) => {
  console.log(response);
});

CLI

space-client <command>

Commands:
  index.js get <endpoint>   Do a GET request
  index.js post <endpoint>  Do a POST request

Options:
  --version       Show version number                                  [boolean]
  --access-token  The space access token                                [string]
  --help          Show help                                            [boolean]

Readme

Keywords

Package Sidebar

Install

npm i deta-space-client

Weekly Downloads

5

Version

2.2.2

License

none

Unpacked Size

8.94 kB

Total Files

6

Last publish

Collaborators

  • pomdtr