Package Exports
- lemonsqueezy.ts-2
- lemonsqueezy.ts-2/checkout
- lemonsqueezy.ts-2/client
- lemonsqueezy.ts-2/customer
- lemonsqueezy.ts-2/discount
- lemonsqueezy.ts-2/file
- lemonsqueezy.ts-2/licenseKey
- lemonsqueezy.ts-2/licenseKeyInstance
- lemonsqueezy.ts-2/modules
- lemonsqueezy.ts-2/order
- lemonsqueezy.ts-2/orderItem
- lemonsqueezy.ts-2/product
- lemonsqueezy.ts-2/store
- lemonsqueezy.ts-2/subscription
- lemonsqueezy.ts-2/subscriptionInvoice
- lemonsqueezy.ts-2/types
- lemonsqueezy.ts-2/user
- lemonsqueezy.ts-2/variant
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (lemonsqueezy.ts-2) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
๐ Install
Install it locally in your project
# npm
npm install lemonsqueezy.ts
# yarn
yarn add lemonsqueezy.ts
# pnpm
pnpm install lemonsqueezy.ts๐ฆ Usage
Create a new client instance with your API key
import { LemonsqueezyClient } from "lemonsqueezy.ts";
const client = new LemonsqueezyClient("YOUR_API_KEY");
const user = await client.getUser();
// => { attributes: { ... }, id: "1", links: { self: "..." }, type: 'users' }
const stores = await client.listAllStores();
// => [{ attributes: { ... }, id: "1", type: "stores" }]
// And many many more...๐ Documentation
To view the documentation on how to use each module, view the README.md for each module: