Skip to main content
Deno 2 is finally here 🎉️
Learn more

deno_machine_id

tag Build Status license

Unique machine (desktop) id (no admin privileges required).

Usage

import machineId from "https://deno.land/x/deno_machine_id/mod.ts";

let id = await machineId();
// c24b0fe51856497eebb6a2bfcd120247aac0d6334d670bb92e09a00ce8169365

let id = machineId(true);
// 98912984-c4e9-5ceb-8000-03882a0485e4

Requires allow-run permission.

Thanks

Heavily inspired by automation-stack/node-machine-id.

License

deno_machine_id is released under the MIT License. See the bundled LICENSE file for details.