0.0.1 • Published 8 months ago
@cooj/utils v0.0.1
@cooj/utils
常用的一些方法
安装
npm i @cooj/utils
# or
yarn add @cooj/utils
# or
pnpm i @cooj/utils
方法
- 获取时间,并格式化
import { formatTime } from '@cooj/utils'
formatTime(new Date(), 'YYYY-mm-dd HH:MM:SS') // 2021-12-29 09:46:08
0.0.1
8 months ago