Node Package Manager

    bimedia-machine-uuid

    2.1.1 • Public • Published

    machine-uuid

    simple node module to generate a machine uuid based on hardware available. (require node v4+)

    installation

    npm install bimedia-machine-uuid

    usage

    var machine = require('machine-uuid')
    
    console.log(machine());

    To keep id consistent between multiple calls or executions you must pass a namespace argument.

    var machine = require('machine-uuid')
    
    console.log(machine('mynamespace'));
    // 2c433a07-140a-5bb9-949a-4997b566c397
    console.log(machine('mynamespace'));
    // 2c433a07-140a-5bb9-949a-4997b566c397

    Namespace may be a string (16 chars) or a uuid (v4):

    var machine = require('machine-uuid'),
        uuidv4 = require('uuid/v4');
    
    var namespace = uuidv4();
    
    console.log(machine(namespace));
    // 2c433a07-140a-5bb9-949a-4997b566c397
    console.log(machine(namespace));
    // 2c433a07-140a-5bb9-949a-4997b566c397

    Install

    npm i bimedia-machine-uuid

    DownloadsWeekly Downloads

    39

    Version

    2.1.1

    License

    Apache-2.0

    Unpacked Size

    17.5 kB

    Total Files

    5

    Last publish

    Collaborators

    • vtricoire
    • jcreigno