{"name":"device-file","version":"1.2.3","author":{"name":"Holepunch Inc"},"license":"Apache-2.0","_id":"device-file@1.2.3","homepage":"https://github.com/holepunchto/device-file","bugs":{"url":"https://github.com/holepunchto/device-file/issues"},"dist":{"shasum":"f24160f08e6126ae6c8749e10bc2c5edb5c6a25c","tarball":"http://registry-npm.ywwl.com/device-file/download/device-file-1.2.3.tgz","fileCount":4,"integrity":"sha512-HWGPoLmgxsRgtKzecse/qDG0LwCg3PfEXpzN8NBrjWCva46WhESW7mVGXnk/JhK2ycYJ2naoSLzxNmZmMTCY0g==","signatures":[{"sig":"MEYCIQCviTBnPnxg9xWCn/LIx/y/AfBQphl1KJBiRlVDsMc4LAIhAMvFDo8BbCTC0us6PeF5Dw3l7Ew2JAwFRt5fHfEMAIMV","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":16714,"size":5916,"noattachment":false,"key":"/device-file/-/device-file-1.2.3.tgz"},"main":"index.js","gitHead":"3a8d3a1b49d2af6651b22b5d9bcfe72ad36c3fed","imports":{"fs":{"bare":"bare-fs","default":"fs"}},"_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"repository":{"url":"git+https://github.com/holepunchto/device-file.git","type":"git"},"_npmVersion":"10.9.0","description":"Device only file","directories":{},"_nodeVersion":"22.12.0","dependencies":{"b4a":"^1.6.7","bare-fs":"^4.0.1","fs-native-extensions":"^1.4.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/device-file_1.2.3_1742491585466_0.7183800369162154","host":"s3://npm-registry-packages-npm-production"},"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":1742491585623,"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"_cnpm_publish_time":1742491585623,"dist-tags":{"latest":"2.3.1"}}