alexgrozav / lemonsqueezy

Unofficial TypeScript SDK for the Lemon Squeezy API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool



πŸ‹
lmnsqz




Unofficial 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 lmnsqz

# yarn
yarn add lmnsqz

# pnpm
pnpm install lmnsqz

πŸ¦„ Usage

Create a new client instance with your API key

import { LemonsqueezyClient } from "lmnsqz";

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

Unofficial TypeScript SDK for the Lemon Squeezy API

License:MIT License


Languages

Language:TypeScript 99.8%Language:JavaScript 0.2%