Latest Threat ResearchGlassWorm Loader Hits Open VSX via Developer Account Compromise.Details
Socket
Book a DemoInstallSign in
Socket

device-file

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

device-file

Device only file

Source
npmnpm
Version
2.0.6
Version published
Weekly downloads
7.2K
2.97%
Maintainers
1
Weekly downloads
 
Created
Source

device-file

Device only file

npm install device-file

Stores some metadata about the device and complains if it thinks its been modified

Usage

const { create, resume } = require('device-file')

await create('DEVICE', { appId: 'my-app-id' }) // pass whatever unique data you have for the device/app

// throws if DEVICE was modified or user data doesnt match or if it looks like an unsafe backup
await resume('DEVICE', { appId: 'my-app-id' })

License

Apache-2.0

FAQs

Package last updated on 08 Nov 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts