🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

lunardate

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lunardate

Thi is the javascript library to convert date to lunar date and vice versa.

1.0.12
latest
Source
npm
Version published
Weekly downloads
6
-50%
Maintainers
1
Weekly downloads
 
Created
Source

lunardate

Thi is the javascript library to convert date to lunar date and vice versa.

installation


    npm install lunardate

Usages

convert from solar date to lunar date


import {convertSolar2Lunar} from "lunardate"

const lunarDate = convertSolar2Lunar(20, 5, 1990);

console.log(lunarDate)

// output will give below result
// { year: 1990, month: 4, day: 26, isLeafYear: false }

Credit

This library using the source from https://www.informatik.uni-leipzig.de/~duc/amlich/ with few small modification

Keywords

lunar

FAQs

Package last updated on 15 Nov 2018

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