🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

dayjs-lunar

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dayjs-lunar

dayjs-lunar is a dayjs plugin to support chinese lunar

latest
Source
npmnpm
Version
0.0.3
Version published
Weekly downloads
226
2.26%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

dayjs

FAQs

Package last updated on 14 Sep 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts