UNPKG

hat

Version:

generate random IDs and avoid collisions

5 lines (3 loc) 60 B
var hat = require('hat'); var id = hat(); console.log(id);