Skip to content

pomdtr/deta-space-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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]

About

An unofficial client for the Deta Space API.

Resources

Stars

Watchers

Forks

Packages

No packages published