Integrate the functions commonly used in the project.
npm i @mazp/util
yarn add @mazp/util
pnpm i @mazp/util
// ESM
import util from "@mazp/util";
util.formatTime(1671198728746)
// CJS
let util = require("@mazp/util");
util.formatTime(1671198728746)
Transform timeStamp to a standard format like 2022-12-16-21-52-8
.
declare function formatTime(time: number): string;
Randomly generate your input parameter length, which is a [a-z][A-Z]
composition string.
declare function randomChars(len: number): string;