An easy way to get your libre 2/3 CGM data!
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.
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
{
mesurement: {
value: number
unit: "mg/dl" | "mmol"
},
status: "low" | "inRange" | "high",
trend: "⬇️" | "↘️" | "➡️" | "↗️" | "⬆️"
}
import { setToken } from 'libre-client';
setToken("yourTokenHere");