MCPcopy Create free account
hub / github.com/webpack/webpack-cli / uuid

Function uuid

test/utils/test-utils.js:361–371  ·  view source on GitHub ↗
(size = 21)

Source from the content-addressed store, hash-verified

359const urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
360
361const uuid = (size = 21) => {
362 let id = "";
363 let i = size;
364
365 while (i--) {
366 // `| 0` is more compact and faster than `Math.floor()`.
367 id += urlAlphabet[(Math.random() * 64) | 0];
368 }
369
370 return id;
371};
372
373const EXPERIMENTAL_WARNING_RE =
374 /^\(node:\d+\) ExperimentalWarning:.*\n(?:\(Use `node --trace-warnings \.\.\.` to show where the warning was created\)\n?)?/gm;

Callers 1

uniqueDirectoryForTestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected