gsof-system-token
v0.2.6
Published
get the a system hardware unique uuid
Downloads
5
Maintainers
Readme
gsof-system-token
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