omnipod-file-reader

1.0.2 • Public • Published

omnipod-file-reader

This is a fork of ibf-file-reader. This library parses a binary IBF file from an Omnipod PDM into an array.

All credit goes to the original author(s). All this repo does is package up the original library into one parseOmnipodFile function, and provides the documentation below.

Usage

import fs from 'fs';
import parseOmnipodFile from 'omnipod-file-reader';

const MY_IBF_FILE = './test/input.ibf';
const MY_OUTPUT_FILE = './test/output.json';

parseOmnipodFile(MY_IBF_FILE).then((parsedData) => {
  const jsonData = JSON.stringify(parsedData, null, 2);

  fs.writeFile(MY_OUTPUT_FILE, jsonData, (err) => {
    if (err) {
      console.log(err);
    } else {
      console.log(`Finished saving to ${MY_OUTPUT_FILE}.`);
    }
  });
}).catch(console.error);

Notes

If you're using macOS, you'll need Android File Transfer installed to be able to extract your Omnipod's IBF data file.

License

MIT

/omnipod-file-reader/

    Package Sidebar

    Install

    npm i omnipod-file-reader

    Weekly Downloads

    1

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    40.1 kB

    Total Files

    8

    Last publish

    Collaborators

    • andrewchilds