CoolFace
Datasetpublic

basant307/AI_Governance_Project

sourceHugging Faceapache-2.0updated 2mo agoView on Hugging Face
0likes45downloads
hyperid.js22 linesDownload Raw Back to lib
1const {str} = require("./str");2 3const alphabet = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';4 5function hyperid() {6  var prefix = str(22, alphabet) + '/';7  Number(prefix);8  var count = 0;9  return function instance() {10    return prefix + count++;11  }12}13 14exports.hyperid = hyperid;15 16// const instance = hyperid();17// console.log(instance());18// console.log(instance());19// console.log(instance());20// console.log(instance());21// console.log(instance());22// console.log(instance());
basant307/AI_Governance_Project · CoolFace