libre-client
TypeScript icon, indicating that this package has built-in type declarations

1.1.3 • Public • Published

Libre-client

An easy way to get your libre 2/3 CGM data!

Important Reminder

Under no circumstances should this package be used as a primary tool for medical purposes. Always rely on the guidance of qualified healthcare professionals to make informed decisions about your health.

Documentation

How to use Libre-client?

First you need to install it :
npm install libre-client

Then you need to initialize it :

import { init, getReading } from 'libre-client';

await init({email:"your@email.com", password:"YourPassWord!"}); // Initialize the package
const response = await getReading(); //get the Blood Glucose reading

The data will be recieved in this format:

{
  mesurement: {
    value: number
    unit: "mg/dl" | "mmol"
  },
  status: "low" | "inRange" | "high",
  trend: "⬇️" | "↘️" | "➡️" | "↗️" | "⬆️"
}

If you already have an authentication token you can manualy set it:

import { setToken } from 'libre-client';

setToken("yourTokenHere");

That's it!

More features to come soon!

Readme

Keywords

Package Sidebar

Install

npm i libre-client

Weekly Downloads

3

Version

1.1.3

License

none

Unpacked Size

19.4 kB

Total Files

8

Last publish

Collaborators

  • limenade