@shopware-ag/meteor-component-library
Version:
The meteor component library is a Vue component library developed by Shopware. It is based on the [Meteor Design System](https://shopware.design/).
16 lines (15 loc) • 399 B
JavaScript
;
const urlAlphabet = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
let nanoid = (size = 21) => {
let id = "";
let bytes = crypto.getRandomValues(new Uint8Array(size));
while (size--) {
id += urlAlphabet[bytes[size] & 63];
}
return id;
};
function createId() {
return nanoid();
}
exports.createId = createId;
//# sourceMappingURL=id-8e80f112.js.map