UNPKG

xotp

Version:

One-Time Password (HOTP/TOTP) library for Node.js, Deno and Bun, with support for Google Authenticator.

8 lines (7 loc) 284 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.padStart = void 0; const padStart = (str = "", length = str.length, padString = "") => { return padString.repeat(Math.max(length, str.length) - str.length) + str; }; exports.padStart = padStart;