UNPKG

mortice

Version:

Isomorphic read/write lock that works in single processes, node clusters and web workers

4 lines (3 loc) 114 B
export const nanoid = (size: number = 10): string => { return Math.random().toString().substring(2, size + 2) }