@aws-amplify/cli-internal
Version:
Amplify CLI
13 lines • 430 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.makeId = void 0;
function makeId(n = 5) {
let text = '';
const possible = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789';
for (let i = 0; i < n; ++i) {
text += possible.charAt(Math.floor(Math.random() * possible.length));
}
return text;
}
exports.makeId = makeId;
//# sourceMappingURL=make-id.js.map
;