kisamoto / lemonsqueezy.ts

πŸ‹ JavaScript / TypeScript SDK for the Lemon Squeezy API

Home Page:https://paka.dev/npm/lemonsqueezy.ts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool



πŸ‹
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:

About

πŸ‹ JavaScript / TypeScript SDK for the Lemon Squeezy API

https://paka.dev/npm/lemonsqueezy.ts

License:MIT License


Languages

Language:TypeScript 99.7%Language:JavaScript 0.3%