0.2.5 • Published 2 years ago
finch-tools v0.2.5
finch-tools
一些有用的工具 May be some useful tools for finch.
- fixIntegerLength : 正整数补位
import {fixIntegerLength} from 'finch-tools';
fixIntegerLength(123,5);
//"00123"
- getRandomString : 随机字符串
import {getRandomString} from 'finch-tools';
getRandomString(5);
//"AYIGJ"
getRandomString();
//"YUIJhgftYuHGVbnmGFtRfVNKHKklloYv"
- getReadableDate : 可读时间戳
import {getReadableDate} from 'finch-tools';
getReadableDate(5);
//"2020_02_26_14_25__325"