0.1.4 • Published 1 year ago

lmnsqzy v0.1.4

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

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🍋.

🛠 Getting Started

npm i lmnsqzy

🍋 Usage (WIP)

// ./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

0.1.4

1 year ago

0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago