Package Exports
- libre-client
- libre-client/dist/index.js
- libre-client/dist/index.mjs
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (libre-client) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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 readingThe 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");