Skip to content

Fetches Hukamnama from Harimandir Sahib, Amritsar via SGPC's website

License

Notifications You must be signed in to change notification settings

KhalisFoundation/hukamnama-json

Repository files navigation

🙏🏻 🙏🏼 🙏🏽 🙏🏾 🙏🏿 hukamnama-json

NodeJS module that fetches Hukamnama from Harimandir Sahib, Amritsar via SGPC

Installation

Requires Node v8+

npm i hukamnama-json

Usage

var hukamnama = require('hukamnama-json');

hukamnama.default()
  .then(({ ang, content, gurbani, punjabi, english }) =>
    console.log(ang, content, gurbani, punjabi, english)
  )
  .catch(error => console.log(error));

Changelog

1.0.0

  • I don't know ¯\_(ツ)_/¯, why don't you suggest?

0.5.0

  • Ensure it's battle-tested.
  • Make it universal

0.1.6

  • Extract date of hukamnama.
  • Ensure it works with multiple-page pdf.

0.0.4

  • Fix #1

0.0.3

  • Use babel for better backward compatibility

0.0.1 (Initial Release)

  • Use rudimentary text parsing to extract.
    • entire content.
    • hukamnama in gurakhr.
    • punjabi translation.
    • english translation.
    • ang.
  • Use PDFJS to extract contents out of the pdf.

Contributing

# Clone
git clone https://github.com/bogas04/hukamnama-json
cd hukamnama.json

# Build
npm i
npm run build

# Test
npm test

License

MIT

About

Fetches Hukamnama from Harimandir Sahib, Amritsar via SGPC's website

Resources

License

Stars

Watchers

Forks

Packages

No packages published