{"name":"device-file","version":"1.0.0","author":{"name":"Holepunch Inc"},"license":"Apache-2.0","_id":"device-file@1.0.0","homepage":"https://github.com/holepunchto/device-file","bugs":{"url":"https://github.com/holepunchto/device-file/issues"},"dist":{"shasum":"060698e3a65e509d3231724b513e1baeda0316e3","tarball":"http://registry-npm.ywwl.com/device-file/download/device-file-1.0.0.tgz","fileCount":7,"integrity":"sha512-Yf6p/OxjY1Kgn/2fXBliFzfZ9RHeSxfS/+ZElyGDXu5Tn6RJjBTx50tBRiPhlVXROGY4O5+jW6ROfvxcfG0Gog==","signatures":[{"sig":"MEUCIAQujdfyt5k3P+OQ08G3hqj2HxbwnRlQQuVXUPYVJyk+AiEAhRt5b8m4kuqOVtg49PIb+ZGrNKChHL8ZbhY1N/pCk3M=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":17114,"size":6131,"noattachment":false,"key":"/device-file/-/device-file-1.0.0.tgz"},"main":"index.js","gitHead":"89ff3e0a1151f705fe5a490a5103cb69c5f9c20b","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":{"bare-fs":"^4.0.1","fs-native-extensions":"^1.4.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/device-file_1.0.0_1741973160168_0.09956093933635257","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":1741973160329,"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"_cnpm_publish_time":1741973160329,"dist-tags":{"latest":"2.3.1"}}