Product
Socket Now Supports uv.lock Files
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
quran-promise
Advanced tools
ES2016 async/await (promise) enabled node module for the Holy Quran.
ES2016 async/await (promise) enabled node module for the Holy Quran. Uses the Tanzil corpus: http://tanzil.net.
For detailed documentation, and code samples for how to use this module in your app or service please visit: https://tjaffri.github.io/quran-promise/.
The rest of this README
describes how you can clone this repo to get the source to develop/test locally. Contributions are very welcome!
First, set up your dev tools and node.js:
npm install -g eslint
and then install the VSCode eslint
extension. See here for more info.Next, clone the repo and install dependencies.
$ git clone https://github.com/tjaffri/quran-promise
$ cd quran-promise
$ npm install
The quran data is in a sqllite database, and a known good version is checked in. Optionally, ff you want to re-generate it, please run:
npm run gendb
Finally, if you're new to Next Generation JavaScript you might want to brush up on the following resources:
Run one, or a combination of the following commands to lint and test your code:
$ npm run lint # Lint the source code with ESLint (runs as part of CI build)
$ npm run lint:fix # Lint the source code with ESLint, using the --fix option to auto-fix some issues
$ npm test # Run unit tests with Mocha
$ npm run test:watch # Run unit tests with Mocha, and watch files for changes
$ npm run test:cover # Run unit tests with code coverage by Istanbul (runs as part of CI build)
$ npm run coveralls # Report code coverage to coveralls.io (runs as part of CI build)
To launch the documentation site, run:
$ npm install -g easystatic
$ npm run start:docs # Launches the docs site locally for testing
$ npm run publish:docs # Optionally, publishes the doc site to GitHub pages (runs as part of CI build)
Finally, to build and publish to npm, you need to run:
npm run build # Builds the source, transpiling via babel (runs as part of CI build)
cd dist # Publish from the dist folder
npm publish # Requires credentials allowed to publish to npm
With thanks, this module acknowledges and depends on the following resources:
Finally, a HUGE callout to the similar npm module https://www.npmjs.com/package/quran. We ended up completely rewriting it, to support ES2016 async/await (promises), but got inspired by it. We also tried to keep the calling semantics as compatible as possible to aid anyone who might be migrating from that module.
MIT © 2016 Axis, the Information Professionals.
FAQs
ES2016 async/await (promise) enabled node module for the Holy Quran.
The npm package quran-promise receives a total of 4 weekly downloads. As such, quran-promise popularity was classified as not popular.
We found that quran-promise demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.
Security News
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.