Gathering detailed insights and metrics for @polypane/node-machine-uid
Gathering detailed insights and metrics for @polypane/node-machine-uid
npm install @polypane/node-machine-uid
Typescript
Module System
Node Version
NPM Version
63.1
Supply Chain
84.4
Quality
71.6
Maintenance
100
Vulnerability
99.3
License
TypeScript (100%)
Total Downloads
322
Last Day
1
Last Week
3
Last Month
14
Last Year
92
1 Stars
11 Commits
1 Watching
2 Branches
1 Contributors
Minified
Minified + Gzipped
Latest Version
1.0.2
Package Id
@polypane/node-machine-uid@1.0.2
Unpacked Size
9.72 kB
Size
3.58 kB
File Count
5
NPM Version
7.20.2
Node Version
16.20.0
Publised On
19 Jun 2023
Cumulative downloads
Total Downloads
Last day
0%
1
Compared to previous day
Last week
-40%
3
Compared to previous week
Last month
366.7%
14
Compared to previous month
Last year
-60%
92
Compared to previous year
1
5
node-machine-uid
is a Node.js library for generating machine-unique identifiers. This library is a fork of the popular node-machine-id library, with modifications to fix an issue on Windows where reading the registry is disabled due to access rights. node-machine-uid
uses the registry-js library to get the machine ID on Windows, which does not require the use of reg.exe
.
Cross-platform unique machine (desktop) id discovery
To install node-machine-uid
in your project, run:
bashCopy code
$ npm install node-machine-uid
node-machine-uid
:1import machineId from "node-machine-uid" 2 3const id = machineId() 4 5console.log(id)
This will output a unique 64 character identifier in the following format:
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
On Windows, node-machine-uid
uses registry-js
to get the machine ID, which does not require the use of reg.exe
. Instead, it generates a unique ID based on the computer name and the processor architecture.
Contributions to node-machine-uid
are welcome! If you would like to contribute, please follow these steps:
node-machine-uid
is licensed under the MIT License. See the LICENSE file for more information.
The node-machine-uid
library is a fork of the node-machine-id library. Special thanks to the original authors for creating such a useful library!
node-machine-uid
also uses the registry-js library to get the machine ID on Windows. Thank you to the `registry
No vulnerabilities found.
No security vulnerabilities found.