/lmnsqzy

πŸ‹ When Typescript meets the LemonSqueezy API

Primary LanguageTypeScriptMIT LicenseMIT

lmnsqzy

{ lmnsqzy } is a Typescript-driven package for interacting with the LemonSqueezy API. Plug in your API token as an environment variable and start making some lemonadeπŸ‹.

commits β€’ downloads β€’ issues

πŸ›  Getting Started

npm i lmnsqzy

πŸ‹ Usage (WIP)

LMNSQZY Promo

// ./lib/lmnsqzy.ts
import { connect } from 'lmnsqzy';

export const { lmnsqzy } = connect(`${process.env.LMNSQZY_API_TOKEN}`)

// aFileToBeNamed.ts
import { lmnsqzy } from '@/lib/lmnsqzy';

const { getStores } = lmnsqzy();

async function storeHandler(){

    const allStoresJSXExample = await getStores();


    // {
    //     allStoresJSXExample.map(e => (
    //         <div>
    //         ...
    //         <a href={`/stores/${e.data.id}`}>View store</a>
    //         ...
    //         </div>
    //     ))
    // }
}

πŸ—ƒ Docs

TBC - WIP