# @hebcal/leyning

> Torah Reading API for Parashat HaShavua and holidays

Latest version **10.1.0** (published 2026-10-05) · BSD-2-Clause license · 0 weekly downloads

## Install

```sh
npm install @hebcal/leyning
pnpm add @hebcal/leyning
yarn add @hebcal/leyning
bun add @hebcal/leyning
```

## Health

**Score 75/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 10.1.0 |
| Published | 2026-10-05 |
| First published | 2020-05-31 |
| Weekly downloads | 0 |
| License | BSD-2-Clause |
| TypeScript types | bundled |
| Module format | ESM |
| Node | >=18 |
| Dependencies | 2 |
| Unpacked size | 436.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 10 |
| Author | Michael J. Radwin |
| Maintainers | mjradwin |
| Keywords | hebcal, torah, sedra, sedrot, leyning, kriyah, leining, sidra, parsha, parasha, parashah |

## Links

- npm: https://www.npmjs.com/package/@hebcal/leyning
- Repository: https://github.com/hebcal/hebcal-leyning
- Homepage: https://hebcal.github.io/api/leyning/
- Issues: https://github.com/hebcal/hebcal-leyning/issues
- npm.io page: https://npm.io/package/@hebcal/leyning

## Dependencies (2)

- [@hebcal/core](https://npm.io/package/@hebcal/core.md) ^6.13.0
- [@hebcal/hdate](https://npm.io/package/@hebcal/hdate.md) ^0.23.0

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 10.1.0 (latest) — 2026-10-05
- 10.0.2 — 2026-09-28
- 10.0.1 — 2026-09-28
- 10.0.0 — 2026-07-30
- 9.6.0 — 2026-07-27
- 9.5.6 — 2026-07-21
- 9.5.5 — 2026-06-07
- 9.5.4 — 2026-04-14
- 9.5.3 — 2026-04-12
- 9.5.2 — 2026-04-10
- 9.5.1 — 2026-03-29
- 9.5.0 — 2026-03-27
- 9.4.1 — 2026-03-08
- 9.4.0 — 2026-01-19
- 9.3.0 — 2025-10-25
- … 150 more at https://npm.io/package/@hebcal/leyning/versions

## README

# @hebcal/leyning
Javascript Torah Reading API for Parashat HaShavua and holidays

[![Build Status](https://github.com/hebcal/hebcal-leyning/actions/workflows/node.js.yml/badge.svg)](https://github.com/hebcal/hebcal-leyning/actions/workflows/node.js.yml)


This package includes both traditional (full kriyah) and weekday
Torah readings.

Triennial Torah Readings have moved to [@hebcal/triennial](https://github.com/hebcal/hebcal-triennial)

## Installation
```bash
$ npm install @hebcal/leyning
```

## Synopsis
```javascript
import {HebrewCalendar, HDate, Event} from '@hebcal/core';
import {getLeyningForParshaHaShavua, formatAliyahWithBook} from '@hebcal/leyning';

const events = HebrewCalendar.calendar({sedrot: true, noHolidays: true});
const ev = events.find((ev) => ev.getDesc() == 'Parashat Pinchas');
const reading = getLeyningForParshaHaShavua(ev, false);
console.log(`${ev.getDesc()}: ${reading.summary}`);
console.log(`Haftara: ${reading.haftara}`);
for (const [num, aliyah] of Object.entries(reading.fullkriyah)) {
  const number = num == 'M' ? 'maftir' : `aliyah ${num}`;
  let str = formatAliyahWithBook(aliyah);
  if (aliyah.reason) {
      str += ' | ' + aliyah.reason;
  }
  str += ` (${aliyah.v} verses)`;
  console.log(`${number}: ${str}`);
}
```
## [API Documentation](https://hebcal.github.io/api/leyning/index.html)

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