{"name":"device-file","version":"1.2.0","author":{"name":"Holepunch Inc"},"license":"Apache-2.0","_id":"device-file@1.2.0","homepage":"https://github.com/holepunchto/device-file","bugs":{"url":"https://github.com/holepunchto/device-file/issues"},"dist":{"shasum":"d3f854355b5a39c95be3f51e369fde7520a3dfd3","tarball":"http://registry-npm.ywwl.com/device-file/download/device-file-1.2.0.tgz","fileCount":4,"integrity":"sha512-jJBv4lPlXyBpHQjidd8bFHyn3iOAeWg9z0P5+enLlhI557EoMOA+fxcXir8g06lozoFP3qy8XQRq/+EmjfSJ1w==","signatures":[{"sig":"MEQCICuBGkUFwGhzt1V+RtI+jTacWqI/6jB0QcYVa6h1CjY6AiB6im6NTc21zV4mNa/2yS6uIii6ktMWk12Lmhcsc3onHA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":16371,"size":5821,"noattachment":false,"key":"/device-file/-/device-file-1.2.0.tgz"},"main":"index.js","gitHead":"03d55e1f2ce6a2a77c530325f552b079af0b48cc","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.0_1742036407339_0.5737804752862301","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":1742036407503,"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"_cnpm_publish_time":1742036407503,"dist-tags":{"latest":"2.3.1"}}