Skip to content

Helena-mother/hellena-javascript-SDK

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hellena-SDK

A JavaScript SDK for the Hellena platform.

Installation

npm i @hellena-sdk/hellena

Usage

import { HellenaClient } from "@hellena-sdk/hellena";
import dotenv from "dotenv";

dotenv.config({ quiet: true });

const main = async () => {
    const hellena = new HellenaClient(process.env.HELLENA_API_KEY!);

    const product = await hellena.product.findOne({
        id: "123"
    })

    return product
}

main().then((data) => {
   console.log(data.barcode, data.name, data.quantity);
}).catch((error) => {
    console.error("An error occurred:", error);
});

Features

  • Easy integration
  • Full API support
  • TypeScript ready

Documentation

For more information, visit the documentation.

License

MIT