planetscale-typescript
v0.0.2
Published
An unofficial typescript client for Planetscale's API
Downloads
3
Readme
planetscale-typescript
Unofficial typescript package to access the PlanetScale API.
Generated from the official open-api spec https://api.planetscale.com/v1/openapi-spec
Usage
Here is an example usage of the PlanetScale Go client. Please make sure to handle errors in your production application.
import PlanetScale from 'planetscale-typescript'
const ps = new PlanetScale({
accessToken: process.env.PLANETSCALE_ACCESS_TOKEN!
})
const organization = await ps.organizations.getAnOrganization('superwall')
console.log(organization, JSON.stringify(organization.data))