0.2.6 • Published 2 years ago

gsof-system-token v0.2.6

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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
0.2.6

2 years ago

0.2.5

2 years ago

0.2.3

3 years ago

0.2.4

3 years ago

0.2.2

3 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.9

5 years ago

0.1.8

6 years ago

0.1.7

6 years ago

0.1.6

7 years ago

0.1.5

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.0

7 years ago