9 lines
199 B
TypeScript
9 lines
199 B
TypeScript
|
import { machineIdSync } from "node-machine-id";
|
||
|
|
||
|
// Asyncronous call with async/await or Promise
|
||
|
|
||
|
export const getMachineId = async () => {
|
||
|
const id = await machineIdSync();
|
||
|
console.log(id);
|
||
|
};
|