UNPKG

crypto-randomuuid

Version:

Polyfill crypto.randomUUID

8 lines (5 loc) 156 B
'use strict'; const crypto = require('crypto'); module.exports = typeof crypto.randomUUID === 'function' ? crypto.randomUUID : require('./polyfill');