# world-calendars

> Convert between various world calendars

Latest version **1.0.4** (published 2025-07-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install world-calendars
pnpm add world-calendars
yarn add world-calendars
bun add world-calendars
```

## Health

**Score 25/100 (F)** — status: maintenance-mode.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2025-07-11 |
| First published | 2016-11-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 368.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Alex Johnson |
| Maintainers | chriddyp, bpostlethwaite, antrg, archmoj, hammadtheone, bronsolo, t4rk, alexshoe, lconnors, ndrezner, farkites, alexcjohnson, emilykl-plotly, marthacryan, vinceplotly, packages-team-plotly |
| Keywords | calendar, date, international |

## Links

- npm: https://www.npmjs.com/package/world-calendars
- Repository: https://github.com/plotly/world-calendars
- Homepage: https://github.com/plotly/world-calendars#readme
- Issues: https://github.com/plotly/world-calendars/issues
- npm.io page: https://npm.io/package/world-calendars

## Dependencies (1)

- [object-assign](https://npm.io/package/object-assign.md) ^4.1.0

## Alternatives

- [@js-joda/timezone](https://npm.io/package/@js-joda/timezone.md) — 383.4K weekly downloads
- [chartjs-adapter-moment](https://npm.io/package/chartjs-adapter-moment.md) — 210.8K weekly downloads
- [strftime](https://npm.io/package/strftime.md) — 171.2K weekly downloads
- [vue-flatpickr-component](https://npm.io/package/vue-flatpickr-component.md) — 115.8K weekly downloads
- [timepicker](https://npm.io/package/timepicker.md) — 51.0K weekly downloads

## Recent versions

- 1.0.4 (latest) — 2025-07-11
- 1.0.3 — 2016-12-14
- 1.0.2 — 2016-12-14
- 1.0.1 — 2016-12-08
- 1.0.0 — 2016-12-08
- 0.1.0 — 2016-11-02

## README

# world-calendars
Node module for converting between various calendars

This project takes [kbwood/calendars](https://github.com/kbwood/calendars) and transforms them from a jQuery plugin to a node module. Many thanks to Keith Wood and all of the contributors to the original project! We support all the calendars in that project plus the Chinese lunar calendar.

kbwood/calendars was originally pulled at version 2.0.2 in October 2016.

The initial implementation converts all built-in calendars and localizations, including the `plus` module, but not the `validation` or `picker` functionality. Also includes basic test functionality.

Typical usage for converting from one date system to another goes through Julian days:
```
var calendars = require('world-calendars');

var gregorian = calendars.instance();
var nepali = calendars.instance('nepali');

// gives nepali date 2073-07-15
var nepaliHalloween = nepali.fromJD(gregorian.newDate(2016, 10, 31).toJD());
```

---
_Source: https://npm.io/package/world-calendars · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
