planetscale-typescript
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

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))

Dependents (0)

Package Sidebar

Install

npm i planetscale-typescript

Weekly Downloads

1

Version

0.0.2

License

MIT

Unpacked Size

544 kB

Total Files

17

Last publish

Collaborators

  • anglinb