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

date-chinese

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

date-chinese

Chinese Calendar

  • 2.1.2
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created

What is date-chinese?

The date-chinese npm package provides utilities for working with the Chinese calendar system. It allows for conversion between Gregorian and Chinese dates, as well as various calculations and formatting specific to the Chinese calendar.

What are date-chinese's main functionalities?

Convert Gregorian Date to Chinese Date

This feature allows you to convert a Gregorian date to a Chinese date. The code sample demonstrates how to create a ChineseDate object and convert a specific Gregorian date to its Chinese equivalent.

const { ChineseDate } = require('date-chinese');
const date = new ChineseDate(2023, 10, 5);
console.log(date.toChinese());

Convert Chinese Date to Gregorian Date

This feature allows you to convert a Chinese date to a Gregorian date. The code sample shows how to create a ChineseDate object and convert a specific Chinese date to its Gregorian equivalent.

const { ChineseDate } = require('date-chinese');
const date = new ChineseDate(2023, 10, 5);
console.log(date.toGregorian());

Get Chinese Zodiac Sign

This feature allows you to get the Chinese zodiac sign for a given date. The code sample demonstrates how to create a ChineseDate object and retrieve the zodiac sign for a specific date.

const { ChineseDate } = require('date-chinese');
const date = new ChineseDate(2023, 10, 5);
console.log(date.getZodiac());

Other packages similar to date-chinese

Keywords

FAQs

Package last updated on 08 Aug 2021

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