appcd-machine-id
v4.1.6
Published
Determines and caches a unique machine identifier.
Downloads
36
Readme
appcd-machine-id
Determines and caches a unique machine identifier.
Visit https://github.com/appcelerator/appc-daemon for more information.
Report issues to GitHub issues. Official issue tracker in JIRA.
Installation
npm i appcd-machine-id
Usage
import getMachineId from 'appcd-machine-id';
const mid = await getMachineId();
console.log(`mid: ${mid}`);
If you want to persist the machine id, pass in a path to the .mid
file.
const mid = await getMachineId('~/.axway/appcd/.mid');
console.log(`mid: ${mid}`);
Legal
This project is open source under the Apache Public License v2 and is developed by
Axway, Inc and the community. Please read the LICENSE
file included
in this distribution for more information.