npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

meeting-schedules-parser

v4.5.0

Published

This tool will help you to parse and extract the needed meeting schedules from Meeting Workbook and Watchtower Study EPUB and JWPUB files.

Readme

Meeting Schedules Parser

CI CD semantic-release: angular snyk Quality Gate Status Code Smells Maintainability Rating Security Rating Bugs Vulnerabilities Ask DeepWiki

A parser utility to extract the needed meeting schedules from Meeting Workbook and Watchtower Study JWPUB and EPUB files.

Install

npm i meeting-schedules-parser

Browser environment (only)

If you will use this package in the browser, run the following command after installing:

npx meeting-schedules-parser

This is necessary to copy a web assembly file required in the browser.

Then adjust your bundler to ignore some Node built-in modules during build. For example, if using Vite, add the following:

  build: {
    rollupOptions: {
      external: ['fs', 'path', 'crypto'],
    },
  },

Usage

// browser
import { loadPub } from 'meeting-schedules-parser';

// node esm
import { loadPub } from 'meeting-schedules-parser/dist/node/index.js';

// node commonjs
const { loadPub } = require('meeting-schedules-parser/dist/node/index.cjs');

// sample usage
const pub = await loadPub('/path/to/file.jwpub');

const pub = await loadPub({ url: fileUrl });

loadPub(pubData)

function: asynchronous

pubData

type: string or blob or url

It can be the path to the JWPUB/EPUB file or JWPUB/EPUB file's blob or url to download the JWPUB/EPUB file.

Return

By calling the loadPub function, it will return an array of objects with the following properties:

Meeting Workbook Data

| Name | Type | Description | | ------------------------ | :---------------: | ------------------------------------------------------------------------------------------------------------------------------- | | mwb_week_date | string | Week date. For enhanced parsing, it is formatted as yyyy/mm/dd | | mwb_week_date_locale* | string | Week date | | mwb_weekly_bible_reading | string | Weekly Bible Reading | | mwb_song_first | integer | First song | | mwb_tgw_talk | string | 10 min talk title of the Treasures from God’s Word | | mwb_tgw_talk_title* | string | 10 min talk full title of the Treasures from God’s Word | | mwb_tgw_gems_title | string | Spiritual gems full title of the Treasures from God’s Word | | mwb_tgw_bread | string | Bible Reading for student | | mwb_tgw_bread_title* | string | Bible Reading assignment full title for student | | mwb_ayf_count | integer | Number of parts in Apply Yourself to the Field Ministry | | mwb_ayf_part1 | string | Part 1 in Apply Yourself to the Field Ministry | | mwb_ayf_part1_time* | integer | Timing of Part 1 in Apply Yourself to the Field Ministry | | mwb_ayf_part1_type* | string | Type of Part 1 in Apply Yourself to the Field Ministry | | mwb_ayf_part1_title* | string | Assignment full title of Part 1 in Apply Yourself to the Field Ministry | | mwb_ayf_part2 | string | Part 2 in Apply Yourself to the Field Ministry. This property will not be available if mwb_ayf_count is 1 | | mwb_ayf_part2_time* | integer | Timing of Part 2 in Apply Yourself to the Field Ministry. This property will not be available if mwb_ayf_count is 1 | | mwb_ayf_part2_type* | string | Type of Part 2 in Apply Yourself to the Field Ministry. This property will not be available if mwb_ayf_count is 1 | | mwb_ayf_part2_title* | string | Assignment full title of Part 2 in Apply Yourself to the Field Ministry | | mwb_ayf_part3 | string | Part 3 in Apply Yourself to the Field Ministry. This property will not be available if mwb_ayf_count is less than 3 | | mwb_ayf_part3_time* | integer | Timing of Part 3 in Apply Yourself to the Field Ministry. This property will not be available if mwb_ayf_count is less than 3 | | mwb_ayf_part3_type* | string | Type of Part 3 in Apply Yourself to the Field Ministry. This property will not be available if mwb_ayf_count is less than 3 | | mwb_ayf_part3_title* | string | Assignment full title of Part 3 in Apply Yourself to the Field Ministry | | mwb_ayf_part4 | string | Part 4 in Apply Yourself to the Field Ministry. This property will not be available if mwb_ayf_count is less than 4 | | mwb_ayf_part4_time* | integer | Timing of Part 4 in Apply Yourself to the Field Ministry. This property will not be available if mwb_ayf_count is less than 4 | | mwb_ayf_part4_type* | string | Type of Part 4 in Apply Yourself to the Field Ministry. This property will not be available if mwb_ayf_count is less than 4 | | mwb_ayf_part4_title* | string | Assignment full title of Part 4 in Apply Yourself to the Field Ministry | | mwb_song_middle | integer | Middle song | | mwb_lc_count | integer | Number of parts in Living as Christians | | mwb_lc_part1 | string | Part 1 in Living as Christians | | mwb_lc_part1_time* | integer | Timing of Part 1 in Living as Christians | | mwb_lc_part1_content* | string | Content of Part 1 in Living as Christians | | mwb_lc_part1_title* | string | Full title of Part 1 in Living as Christians | | mwb_lc_part2 | string | Part 2 in Living as Christians. This property will not be available if mwb_lc_count is 1 | | mwb_lc_part2_time* | integer | Timing of Part 2 in Living as Christians. This property will not be available if mwb_lc_count is 1 | | mwb_lc_part2_content* | string | Content of Part 2 in Living as Christians. This property will not be available if mwb_lc_count is 1 | | mwb_lc_part2_title* | string | Full title of Part 2 in Living as Christians | | mwb_lc_cbs | string | Congregation Bible Study source material | | mwb_lc_cbs_title* | string | Congregation Bible Study assignment full title | | mwb_song_conclude | integer or string | Concluding song. When the song number is out of range, it will be the default text from the Meeting Workbook. |

Watchtower Study Data

| Name | Type | Description | | ----------------------- | :-----: | ---------------------------------------------------------------- | | w_study_date | string | Week date. For enhanced parsing, it is formatted as yyyy/mm/dd | | w_study_date_locale* | string | Week date | | w_study_title | string | Watchtower Study Article Title | | w_study_opening_song | integer | Opening Song for the Watchtower Study | | w_study_concluding_song | integer | Concluding Song for the Watchtower Study |

* These properties are only available when enhanced parsing is available for the language you parse.

Currently, we support enhanced parsing for 45+ languages. For a complete and up-to-date list of supported languages, check:

  • src/config/enhanced_languages.ts for the authoritative language codes
  • src/locales/ directory for locale-specific parsing rules and translations
  • src/node/utils.node.ts and src/browser/utils.browser.ts for registered languages

Supported languages include (but not limited to): Brazilian Portuguese, Bulgarian, Chinese (Simplified & Traditional), Dutch, English, Estonian, Finnish, French, German, Greek, Haitian Creole, Hebrew, Hindi, Hungarian, Iloko, Italian, Japanese, Kinyarwanda, Korean, Liberian English, Malagasy, Malay, Polish, Portuguese, Romanian, Russian, Slovenian, Spanish, Swahili, Swedish, Tagalog, Turkish, Ukrainian, Vietnamese, and more.

For the other languages, you may use your own method to convert these outputs according to your needs to get the needed informations. If you want to contribute and add or improve language support, please follow this guide.

For developer-focused locale onboarding and parser wiring, see CONTRIBUTING.md under Locale and Parsing Contributions.

Sample Output

Here are how the results of this module look like:

With enhanced parsing

Meeting Workbook Data

[
  {
    mwb_week_date: '2024/11/04',
    mwb_week_date_locale: 'NOVEMBER 4-10',
    mwb_weekly_bible_reading: 'PSALM 105',
    mwb_song_first: 3,
    mwb_tgw_talk: '“He Remembers His Covenant Forever”',
    mwb_tgw_talk_title: '1. “He Remembers His Covenant Forever”',
    mwb_tgw_gems_title: '2. Spiritual Gems',
    mwb_tgw_bread: 'Ps 105:24-45 (th study 5)',
    mwb_tgw_bread_title: '3. Bible Reading',
    mwb_ayf_count: 4,
    mwb_ayf_part1: 'HOUSE TO HOUSE. The householder is busy. (lmd lesson 2 point 5)',
    mwb_ayf_part1_time: 1,
    mwb_ayf_part1_type: 'Starting a Conversation',
    mwb_ayf_part1_title: '4. Starting a Conversation',
    mwb_ayf_part2: 'HOUSE TO HOUSE. End the conversation on a positive note when the person begins to argue. (lmd lesson 4 point 5)',
    mwb_ayf_part2_time: 2,
    mwb_ayf_part2_type: 'Starting a Conversation',
    mwb_ayf_part2_title: '5. Starting a Conversation',
    mwb_ayf_part3: 'HOUSE TO HOUSE. Offer a magazine on a topic that the person previously showed interest in. (lmd lesson 8 point 3)',
    mwb_ayf_part3_time: 4,
    mwb_ayf_part3_type: 'Following Up',
    mwb_ayf_part3_title: '6. Following Up',
    mwb_ayf_part4: 'INFORMAL WITNESSING. Tell the person about the JW Library® app, and help him download it. (lmd lesson 9 point 5)',
    mwb_ayf_part4_time: 4,
    mwb_ayf_part4_type: 'Following Up',
    mwb_ayf_part4_title: '7. Following Up',
    mwb_song_middle: 84,
    mwb_lc_count: 1,
    mwb_lc_part1: 'Expressions of Your Love',
    mwb_lc_part1_time: 15,
    mwb_lc_part1_title: '8. Expressions of Your Love',
    mwb_lc_part1_content: 'Discussion.',
    mwb_lc_cbs: 'bt chap. 17 ¶13-19',
    mwb_lc_cbs_title: '9. Congregation Bible Study',
    mwb_song_conclude: 97,
  },
	...
]

Watchtower Study Data

[
  {
    w_study_date: '2025/01/06',
    w_study_date_locale: 'Study Article 44: January 6-12, 2025',
    w_study_title: 'How to Cope With Injustice',
    w_study_opening_song: 33,
    w_study_concluding_song: 38
  },
	...
]

Without enhanced parsing

Meeting Workbook Data

[
  {
    mwb_week_date: '4.-10. NOVEMBER',
    mwb_weekly_bible_reading: 'SALME 105',
    mwb_song_first: 3,
    mwb_tgw_talk: '1. “Han husker for evigt sin pagt” (10 min.)',
    mwb_tgw_gems_title: '2. Åndelige perler (10 min.)',
    mwb_tgw_bread: '3. Oplæsning fra Bibelen (4 min.) Sl 105:24-45 (th arbejdspunkt 5)',
    mwb_ayf_count: 4,
    mwb_ayf_part1: '4. Start en samtale (1 min.) FRA HUS TIL HUS. Den besøgte har travlt. (lmd lektion 2 punkt 5)',
    mwb_ayf_part2: '5. Start en samtale (2 min.) FRA HUS TIL HUS. Du afslutter samtalen på en venlig måde da den besøgte vil diskutere. (lmd lektion 4 punkt 5)',
    mwb_ayf_part3: '6. Følg op på interessen (4 min.) FRA HUS TIL HUS. Tilbyd et blad om noget som den besøgte tidligere har udtrykt interesse for. (lmd lektion 8 punkt 3)',
    mwb_ayf_part4: '7. Følg op på interessen (4 min.) UFORMEL FORKYNDELSE. Fortæl personen om JW Library®-appen, og hjælp ham eller hende med at downloade den. (lmd lektion 9 punkt 5)',
    mwb_song_middle: 84,
    mwb_lc_count: 1,
    mwb_lc_part1: '8. Hvordan vi kan vise vores kærlighed (15 min.) Drøftelse.',
    mwb_lc_cbs: '9. Menighedsbibelstudiet (30 min.) bt kap. 17 § 13-19',
    mwb_song_conclude: 97,
  },
	...
]

Watchtower Study Data

[
  {
    w_study_date: 'Studieartikel 44, 6.-12. januar 2025',
    w_study_title: 'Hvordan du kan tackle uretfærdighed',
    w_study_opening_song: 33,
    w_study_concluding_song: 38
  },
	...
]