msecs - (Number | Date) Time in milliseconds since unix Epoch. Default: The current time is used.

nsecs - (Number between 0-9999) additional time, in 100-nanosecond units. Ignored if msecs is unspecified. Default: internal uuid counter is used, as per 4.2.1.2.

buffer - (Array | Buffer) Array or buffer where UUID bytes are to be written.

offset - (Number) Starting index in buffer at which to begin writing.

Returns buffer, if specified, otherwise the string form of the UUID

Notes:

The randomly generated node id is only guaranteed to stay constant for the lifetime of the current JS runtime. (Future versions of this module may use persistent storage mechanisms to extend this guarantee.)

To use the executable, it's probably best to install this library globally.

npm install -g node-uuid

Usage:

USAGE: uuid [version] [options]

options:

--help Display this message and exit

version must be an RFC4122 version that is supported by this library, which is currently version 1 and version 4 (denoted by "v1" and "v4", respectively). version defaults to version 4 when not supplied.