{"name":"device-file","version":"1.1.1","author":{"name":"Holepunch Inc"},"license":"Apache-2.0","_id":"device-file@1.1.1","homepage":"https://github.com/holepunchto/device-file","bugs":{"url":"https://github.com/holepunchto/device-file/issues"},"dist":{"shasum":"51966b5e13c978448ee76e79a15d0c663473ac48","tarball":"http://registry-npm.ywwl.com/device-file/download/device-file-1.1.1.tgz","fileCount":4,"integrity":"sha512-EH9b3oJDixnUQSCLkV8VvvoxThc3QApuUAU/46Lk7op7IV6Z6nV1F1OoUfcKRfkPWnq5mWFDo5Gx8AN/SaV49A==","signatures":[{"sig":"MEUCIH0rDhG7Ez4vtK2uIN4hCXZpaOM00Gav/PFvqGUkMwBkAiEA+b7bNDnDuQQIiWx4OI5Fuje9KjcpvmxuITzKfZn9Pq8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":16120,"size":5766,"noattachment":false,"key":"/device-file/-/device-file-1.1.1.tgz"},"main":"index.js","gitHead":"d3df923e40b4b6f367a93a69c8d534037f13353d","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.1.1_1742036152759_0.0006108887874280988","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":1742036152944,"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"_cnpm_publish_time":1742036152944,"dist-tags":{"latest":"2.3.1"}}