npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

device-file

2.1.3

@mafintosh

npmHomeRepoSnykSocket
Downloads:179691
$ npm install device-file
DailyWeeklyMonthlyYearly

device-file

Device only file

npm install device-file

Stores some metadata about the device and complains if it thinks its been modified

Usage

const DeviceFile = require('device-file')

const d = new DeviceFile('DEVICE', { data: { appId: 'my-app-id' }})

// throws if DEVICE was modified or user data doesnt match or if it looks like an unsafe backup
await d.ready()

License

Apache-2.0