{"name":"device-file","version":"1.2.4","description":"Device only file","main":"index.js","dependencies":{"b4a":"^1.6.7","bare-fs":"^4.0.1","fs-native-extensions":"^1.4.0"},"devDependencies":{"brittle":"^3.13.1","standard":"^17.1.2"},"scripts":{"test":"standard && brittle test.js"},"imports":{"fs":{"bare":"bare-fs","default":"fs"}},"repository":{"type":"git","url":"git+https://github.com/holepunchto/device-file.git"},"author":{"name":"Holepunch Inc"},"license":"Apache-2.0","bugs":{"url":"https://github.com/holepunchto/device-file/issues"},"homepage":"https://github.com/holepunchto/device-file","_id":"device-file@1.2.4","gitHead":"2fa2d609f71f88ccd1fcb4de03996bf1cacf380c","_nodeVersion":"22.12.0","_npmVersion":"10.9.0","dist":{"integrity":"sha512-cT6CBRFsEr3DNnjOdncfcP1bH0wZYh4/Et28Fx3/7XTIt1L2Bq7fKXstSxLsrUcQakqCg+RZg2QszEViR9NRUw==","shasum":"0b154abc815dd0211d4fc14852caf648c40d8d9c","tarball":"http://registry-npm.ywwl.com/device-file/download/device-file-1.2.4.tgz","fileCount":4,"unpackedSize":16873,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIB3DnU5MD09mEMNGdKDmNpC3gfZKjRY0z9ec7TvvgYRYAiBRxdt6kllV2/Tatsi3LLGYH6lIXkorx1Yzeyac3ty7XQ=="}],"size":5965,"noattachment":false,"key":"/device-file/-/device-file-1.2.4.tgz"},"_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/device-file_1.2.4_1742501624136_0.7507797260480147"},"_hasShrinkwrap":false,"readme":"# device-file\n\nDevice only file\n\n```\nnpm install device-file\n```\n\nStores some metadata about the device and complains if it thinks its been modified\n\n## Usage\n\n``` js\nconst { create, resume } = require('device-file')\n\nawait create('DEVICE', { appId: 'my-app-id' }) // pass whatever unique data you have for the device/app\n\n// throws if DEVICE was modified or user data doesnt match or if it looks like an unsafe backup\nawait resume('DEVICE', { appId: 'my-app-id' })\n```\n\n## License\n\nApache-2.0\n","publish_time":1742501624301,"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"_cnpm_publish_time":1742501624301,"dist-tags":{"latest":"2.3.1"}}