MCPcopy Index your code
hub / github.com/OpenSignLabs/OpenSign / generatePdfName

Function generatePdfName

apps/OpenSign/src/constant/Utils.js:3674–3684  ·  view source on GitHub ↗
(length)

Source from the content-addressed store, hash-verified

3672
3673// `generatePdfName` is used to generate file name
3674export function generatePdfName(length) {
3675 const characters =
3676 "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
3677 let result = "";
3678 const charactersLength = characters.length;
3679
3680 for (let i = 0; i < length; i++) {
3681 result += characters.charAt(Math.floor(Math.random() * charactersLength));
3682 }
3683 return result;
3684}
3685
3686// Format date and time for the selected timezone
3687export const formatTimeInTimezone = (date, timezone) => {

Callers 12

handleSavePrefillImgFunction · 0.90
handleSavePrefillImgFunction · 0.90
handleEmbedPrefillToDocFunction · 0.90
FormsFunction · 0.90
handlePasswordSubmitFunction · 0.90
embedPrefilllWidgetsFunction · 0.90
autosavedetailsFunction · 0.90
autosavedetailsFunction · 0.90
autosavedetailsFunction · 0.90
embedPrefilllWidgetsFunction · 0.90
decryptPdfFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected