gsof-system-token
TypeScript icon, indicating that this package has built-in type declarations

0.2.6 • Public • Published

gsof-system-token

npm version
get the a system hardware unique uuid

Installation

Using npm:

$ npm install --save gsof-system-token

Example

const { getSystemToken } = reuqire("gsof-system-token");

// use await
const token = await getSystemToken();

// use then
getSystemToken().then((token) => {
  // do something
});

Description

  • in Windows: use dmidecode.exe
dmidecode.exe -s system-uuid
  • in Mac OS :
ioreg -rd1 -c IOPlatformExpertDevice | awk '/IOPlatformUUID/ { split($0, line, \"\\\"\"); printf(\"%s\\n\", line[4]); }'
  • in Linux
hal-get-property --udi /org/freedesktop/Hal/devices/computer --key system.hardware.uuid

#or

dmidecode -s system-uuid

Package Sidebar

Install

npm i gsof-system-token

Weekly Downloads

24

Version

0.2.6

License

MIT

Unpacked Size

99.9 kB

Total Files

12

Last publish

Collaborators

  • gaoshang212