1.0.3 • Published 1 year ago

@mazp/util v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@mazp/util

Introduce

Integrate the functions commonly used in the project.

Install

npm i @mazp/util
yarn add @mazp/util
pnpm i @mazp/util

Usage

// ESM
import util from "@mazp/util";
util.formatTime(1671198728746)
// CJS
let util = require("@mazp/util");
util.formatTime(1671198728746)

API

formatTime

Transform timeStamp to a standard format like 2022-12-16-21-52-8.

declare function formatTime(time: number): string;

randomChars

Randomly generate your input parameter length, which is a [a-z][A-Z] composition string.

declare function randomChars(len: number): string;
1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago