JS: futoin-uuid

A primitive wrapper of uuid package for UUID v4 generation with Base64 encoding.

The reason is to get a universal and short UUID representation in printable characters which can be efficiently used in JSON and databases without special UUID type.

It produces only 22 characters instead of canonical 36 hexdecimal chars with separators.

Usage

const UUIDTool = require('futoin-uuid');

UUIDTool.genBin(); // -> Buffer(16)
UUIDTool.genB64(); // -> String(22)