dexcom-share
TypeScript icon, indicating that this package has built-in type declarations

3.4.0 • Public • Published

dexcom-share

This JavaScript module provides an Async Iterator API for reading blood glucose readings from Dexcom's Share servers.

Example

const dexcom = require('dexcom-share')

async function main() {
  const iterator = dexcom({
    username: 'DEXCOM_SHARE_USERNAME',
    password: 'DEXCOM_SHARE_PASSWORD'
  })

  for await (const reading of iterator) {
    console.log(reading)
    /*
    { DT: '/Date(1515095827000-0800)/',
      ST: '/Date(1515095827000)/',
      Trend: 4,
      Value: 123,
      WT: '/Date(1515095827000)/',
      Date: 1515095827000 }
    */
  }
}

main().catch(err => {
  console.error(err)
  process.exit(1)
})

/dexcom-share/

    Package Sidebar

    Install

    npm i dexcom-share

    Weekly Downloads

    1

    Version

    3.4.0

    License

    GPL-3.0

    Unpacked Size

    25.2 kB

    Total Files

    5

    Last publish

    Collaborators

    • tootallnate