npm.io
2.3.1 • Published 6 months ago

device-file

Licence
Apache-2.0
Version
2.3.1
Deps
6
Size
19 kB
Vulns
0
Weekly
0
Stars
3

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