JSPM

lemonsqueezy.ts-2

0.1.8a
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 6
  • Score
    100M100P100Q48592F
  • License MIT

JavaScript / TypeScript SDK for the Lemon Squeezy API

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



๐Ÿ‹
lemonsqueezy.ts




JavaScript / TypeScript SDK for the Lemon Squeezy API

Build status Package version Package monthly downloads Docs



๐Ÿš€ 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: