velo-kit
v0.0.1-beta.6
Published
## Description Lightweight method library.
Downloads
3
Readme
velo-kit
Description
Lightweight method library.
Install
::: code-group
$ npm i velo-kit
$ pnpm add velo-kit
$ yarn add velo-kit
:::
Usage
import { useFormatDate } from 'velo-kit'
import type { useFormatDateOptions } from 'velo-kit'
const options: useFormatDateOptions = {
dateString: new Date('2024-02-27 12:34:56'),
format: 'YYYY-MM-DD HH-mm-ss',
chinese: true,
}
const result = useFormatDate(options)
// '2024年02月27日12时34分56秒'