Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

moon-time

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

moon-time

moon-time is a component that converts the solar calendar to the lunar calendar (Chinese lunar calendar), it is very simple to use。

  • 1.0.7
  • npm
  • Socket score

Version published
Weekly downloads
29
increased by81.25%
Maintainers
1
Weekly downloads
 
Created
Source

moon-time

moon-time is a component that converts the solar calendar to the lunar calendar (Chinese lunar calendar), it is very simple to use。

Install

    npm install moon-time
    let moonTimes = moonTime({
        year,
        month,
        day
    })

npm way


	/***
     * The previous version used:let moonTime = require('calculate');
     * In order to unify the naming, it is now changed to "moon-time", the previous "calculate" naming is still available, but subsequent updates will occur at "moon-time", it is recommended to use "moon-time"
     */


    let moonTime = require('moon-time')
    /***
     * import moonTime from 'moon-time'
     */
	
	let moonTimes = moonTime({
	    year:2022,
	    month:10,
	    day:13
	})
	
	console.log(moonTimes);
	

javascript way

<body>
    <script src="./calculate"></script>
    <script>
        let moonTimes = moonTime({
			year:2022,
            month:10,
            day:13
        })
        
        console.log(moonTimes);
    </script>
</body>

Keywords

FAQs

Package last updated on 21 Oct 2022

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc