npm

npm’s 2019 JavaScript ecosystem survey analysis is now available!Get your copy here »

compact-uuid

0.0.1 • Public • Published

compact-uuid

AUTO_INCREMENT is for chumps. Make your primary key compatible with distributed, multi-master systems from the get-go by using UUIDs. Inspired by http://mysql.rjweb.org/doc.php/uuid

Usage

Your field should by MySQL BINARY(16) or compatible. Simply call

var CompactUuid = require('compact-uuid');
var myId = CompactUuid.generate()

Keywords

none

install

npm i compact-uuid

Downloadsweekly downloads

8

version

0.0.1

license

ISC

last publish

collaborators

  • avatar
Report a vulnerability