name-my-computer
v1.0.2311
Published
give your computer a human name based on its mac address
Downloads
10
Maintainers
Readme
name-my-computer
give your computer a human name, based on its mac address.
give your computer a personality by giving it a name! ✨💻😊
-- ancient haiku
great for remembering machines within a cluster.
Table of Contents
Installation
npm i name-my-computer
Usage
console.log(require('name-my-computer').getName());
//returns "Bill Biffoli"
Is it dangerous to post my MAC address publically?
Not really. But you can use the salt
param to make it impossible to guess the MAC from the generated name. The salt
is appended to the MAC address before generating the result. The salt is blank by default.
var salt = "12345";
console.log(require('name-my-computer').getName(salt));
//returns "Eula Tucci"
//suppose we want to convert some arbitrary input [rather than the mac address], into a name...
//console.log(require('name-my-computer').getName(salt, input));