# libhdate

> A pure Javascript implementation of libhdate

Latest version **0.3.2** (published 2015-09-16) · GPLv3 license · 0 weekly downloads

## Install

```sh
npm install libhdate
pnpm add libhdate
yarn add libhdate
bun add libhdate
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.3.2 |
| Published | 2015-09-16 |
| First published | 2015-05-16 |
| Weekly downloads | 0 |
| License | GPLv3 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | Yaacov Zamir |
| Maintainers | kzamir |
| Keywords | libhdate, hdate, hcal, date, calendar, hebrew, jewish |

## Links

- npm: https://www.npmjs.com/package/libhdate
- Repository: https://github.com/yaacov/libhdate-js
- Homepage: https://github.com/yaacov/libhdate-js#readme
- Issues: https://github.com/yaacov/libhdate-js/issues
- npm.io page: https://npm.io/package/libhdate

## 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

- 0.3.2 (latest) — 2015-09-16
- 0.3.1 — 2015-05-16
- 0.3.0 — 2015-05-16
- 0.2.0 — 2015-05-16
- 0.1.0 — 2015-05-16
- 0.0.2 — 2015-05-16
- 0.0.1 — 2015-05-16

## README

# libhdate-js
A pure javascript (partial) implementation of libhdate

[![NPM Version](https://img.shields.io/npm/v/gm.svg?style=flat)](https://www.npmjs.org/package/libhdate)

## Install

    npm install libhdate

## Basic Usage

```js
// import this module
var Hdate = require("libhdate");

// create a new Hdate object
var h = new Hdate();

// Set the Date
h.setGdate(16, 5, 2015);

// Printout
console.log(h);

// get holydays
var holyday = h.getHolyday(h);
var omer = h.getOmerDay(h);
console.log(h.getHolydayName(holyday));
console.log(omer);

// get parasha for next shabbat
var reading = h.getShabbatsParasha(h);
console.log(h.getParashaName(reading));

// get times
var latitude = 32.07;
var longitude = 34.77;
var timeZone = 3 * 60;
var times = h.getSunTimeFull(h, latitude, longitude);

// adjust time zone
var timeStrings = times.slice(1).map(function (t) {
t += timeZone;
return "" + Math.floor(t / 60) + ":" + (t % 60);
});
console.log(timeStrings);
```

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