ricobuilds / lmnsqzy

πŸ‹ When Typescript meets the LemonSqueezy API

Home Page:https://www.npmjs.com/package/lmnsqzy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

πŸ‹ When Typescript meets the LemonSqueezy API

https://www.npmjs.com/package/lmnsqzy

License:MIT License


Languages

Language:TypeScript 100.0%