Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pomdtr/deta-space-client
An unofficial client for the Deta Space API.
https://github.com/pomdtr/deta-space-client
Last synced: about 2 months ago
JSON representation
An unofficial client for the Deta Space API.
- Host: GitHub
- URL: https://github.com/pomdtr/deta-space-client
- Owner: pomdtr
- Created: 2023-02-28T22:14:23.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-07-26T16:20:01.000Z (over 1 year ago)
- Last Synced: 2024-11-03T04:02:33.451Z (2 months ago)
- Language: JavaScript
- Size: 90.8 KB
- Stars: 5
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Deta Space Client
An fetch function for deta space
## Usage
See the [Authentication Doc](https://deta.space/docs/en/basics/cli/#authentication) for more information on how to get your access token.
```js
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
```txt
space-clientCommands:
index.js get Do a GET request
index.js post Do a POST requestOptions:
--version Show version number [boolean]
--access-token The space access token [string]
--help Show help [boolean]
```