Research
Security News
Threat Actor Exposes Playbook for Exploiting npm to Build Blockchain-Powered Botnets
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
Util for calculating lunar date.
npm install calunar
import Calunar from 'calunar';
let lunarDate = Calunar.solar2Lunar(25, 11, 2011, 7);
console.log(lunarDate); // return 1/11/2011
Comvert solar date dd/mm/yyyy to the corresponding lunar date.
Calunar.solar2Lunar(9, 2, 2016, 7); // return 2/1/2016
Compute the (integral) Julian day number of day dd/mm/yyyy, i.e., the number of days between 1/1/4713 BC (Julian calendar) and dd/mm/yyyy.
Formula from http://www.tondering.dk/claus/calendar.html
Calunar.jdFromDate(12, 10, 1812); // return 2383164
Convert a Julian day number to day/month/year. Parameter jd is an integer.
Calunar.jdToDate(2383164); // return [12, 10, 1812]
npm install
npm test
The MIT License (MIT)
FAQs
Calunar: util for handling lunar date
We found that calunar demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.