UNPKG

gud

Version:

Create a 'gud nuff' (not cryptographically secure) globally unique id

9 lines (6 loc) 139 B
// @flow 'use strict'; var key = '__global_unique_id__'; module.exports = function() { return global[key] = (global[key] || 0) + 1; };