appcd-machine-id

4.1.6 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i appcd-machine-id

Weekly Downloads

3

Version

4.1.6

License

Apache-2.0

Unpacked Size

16.5 kB

Total Files

5

Last publish

Collaborators

  • cb1kenobi
  • awam
  • tisdk