mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-05-06 06:17:11 -04:00
🔧:build SSR dist and deploy
This commit is contained in:
parent
76c26901d7
commit
c59ad6aedb
465 changed files with 214127 additions and 2 deletions
20
dist/server/chunks/chunk-264f08b8.js
vendored
Normal file
20
dist/server/chunks/chunk-264f08b8.js
vendored
Normal file
|
@ -0,0 +1,20 @@
|
|||
import { s as shuffleString } from './chunk-11f44f81.js';
|
||||
|
||||
function createToken({
|
||||
withUppercase = true,
|
||||
withLowercase = true,
|
||||
withNumbers = true,
|
||||
withSymbols = false,
|
||||
length = 64,
|
||||
alphabet
|
||||
}) {
|
||||
const allAlphabet = alphabet ?? [
|
||||
withUppercase ? "ABCDEFGHIJKLMOPQRSTUVWXYZ" : "",
|
||||
withLowercase ? "abcdefghijklmopqrstuvwxyz" : "",
|
||||
withNumbers ? "0123456789" : "",
|
||||
withSymbols ? `.,;:!?./-"'#{([-|\\@)]=}*+` : ""
|
||||
].join("");
|
||||
return shuffleString(allAlphabet.repeat(length)).substring(0, length);
|
||||
}
|
||||
|
||||
export { createToken as c };
|
Loading…
Add table
Add a link
Reference in a new issue