0.0.3 • Published 10 months ago

dayjs-lunar v0.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

dayjs-lunar

npm version npm downloads bundle JSDocs License

dayjs-lunar is a dayjs plugin to support chinese lunar

Install

npm i dayjs-lunar

Usage

import dayjs from 'dayjs'
import lunar from 'dayjs-lunar'

const day = dayjs('2010-10-20')

console.log(day.lunar()) // "二〇一〇年九月十三"
console.log(day.lunar('YYYY-MM-DD')) // "2010-09-13"
console.log(day.lunar('年月日')) // "二〇一〇年九月十三"

License

MIT License © 2024-PRESENT Bijinfeng

0.0.3

10 months ago

0.0.2

10 months ago

0.0.1

10 months ago