{"name":"device-file","version":"1.2.2","author":{"name":"Holepunch Inc"},"license":"Apache-2.0","_id":"device-file@1.2.2","homepage":"https://github.com/holepunchto/device-file","bugs":{"url":"https://github.com/holepunchto/device-file/issues"},"dist":{"shasum":"6dacc48b3652a92501a15f0e34df6eeb1ad220ca","tarball":"http://registry-npm.ywwl.com/device-file/download/device-file-1.2.2.tgz","fileCount":4,"integrity":"sha512-MMH2BVi3nNgt6QeXxl+//5xCqdRBiShnJqnBhwcsmLGPk9Bm/Q5tM2Evcy9iTOIoaphRNW2bwmKJQHTOPln0Kg==","signatures":[{"sig":"MEYCIQDmSkl8XuuMyofb8JsVoC9MkK0faJGhYc937mVkSivRGAIhAJBbRHaS7O+6iQ6iD62sgQh02mAelBGE3Hjpl3S/Cca7","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":16643,"size":5886,"noattachment":false,"key":"/device-file/-/device-file-1.2.2.tgz"},"main":"index.js","gitHead":"c3856371b751b775258cf9d996c13c90599e4062","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.2_1742039132307_0.15690754245264094","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":1742039132479,"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"_cnpm_publish_time":1742039132479,"dist-tags":{"latest":"2.3.1"}}