UNPKG

alpha-dic

Version:

Asynchronous dependency injection container

13 lines (12 loc) 336 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.randomName = void 0; const randomString = require("random-string"); function randomName(prefix) { const name = randomString({ length: 20 }); if (prefix) { return prefix + name; } return name; } exports.randomName = randomName;