forked from risan/quran-json
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
261 changed files
with
26,539 additions
and
25,235 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module.exports = { | ||
extends: [ | ||
"airbnb-base", | ||
"plugin:prettier/recommended" | ||
] | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
/node_modules | ||
/tanzil-test | ||
node_modules | ||
yarn.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
scripts | ||
tanzil | ||
.eslintrc.js | ||
yarn.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,98 @@ | ||
# Quran JSON | ||
|
||
Quran text and translations from [tanzil.net](http://tanzil.net) in JSON format. The translations are available in English and Indonesian. | ||
Quran text and translations in JSON format. Both Quran text and the translations are provided by [tanzil.net](http://tanzil.net). | ||
|
||
## Related Packages | ||
## Quran JSON CDN | ||
|
||
Check the [json directory](https://github.com/risan/quran-json/tree/master/json) to see all available JSON files. The JSON files are also available through [UNPKG](https://unpkg.com/) CDN. | ||
|
||
### List of Surah | ||
|
||
* List of surah: [unpkg.com/quran-json@latest/json/surahs.json](https://unpkg.com/quran-json@latest/json/surahs.json) | ||
|
||
### Quran Text | ||
|
||
* Quran Text: [unpkg.com/quran-json@latest/json/quran/text.json](https://unpkg.com/quran-json@latest/json/quran/text.json) | ||
|
||
### Translations | ||
|
||
* English translation (Saheeh International): [unpkg.com/quran-json@latest/json/translations/en.json](https://unpkg.com/quran-json@latest/json/translations/en.json) | ||
* Indonesian translation (Indonesian Ministry of Religious Affairs): [unpkg.com/quran-json@latest/json/translations/id.json](https://unpkg.com/quran-json@latest/json/translations/id.json) | ||
|
||
### Quran Text with Translations | ||
|
||
* Quran text with English translation (Saheeh International): [unpkg.com/quran-json@latest/json/quran/en.json](https://unpkg.com/quran-json@latest/json/quran/en.json) | ||
* Quran text with Indonesian translation (Indonesian Ministry of Religious Affairs): [unpkg.com/quran-json@latest/json/quran/id.json](https://unpkg.com/quran-json@latest/json/quran/id.json) | ||
* Quran text with English and Indonesian translations: [unpkg.com/quran-json@latest/json/quran/en-id.json](https://unpkg.com/quran-json@latest/json/quran/en-id.json) | ||
|
||
### Quran Text with Translations per Surah | ||
|
||
Each Surah is available under the following URL format: | ||
|
||
``` | ||
https://unpkg.com/quran-json@latest/json/surahs/{surahNumber}.json | ||
``` | ||
|
||
`surahNumber` is an integer from `1` (Al-Faatiha) to `144` (An-Naas). For example: | ||
|
||
* Al-Faatiha: [unpkg.com/quran-json@latest/json/surahs/1.json](https://unpkg.com/quran-json@latest/json/surahs/1.json) | ||
* Ar-Rahmaan: [unpkg.com/quran-json@latest/json/surahs/55.json](https://unpkg.com/quran-json@latest/json/surahs/55.json) | ||
* Al-Aadiyaat: [unpkg.com/quran-json@latest/json/surahs/100.json](https://unpkg.com/quran-json@latest/json/surahs/100.json) | ||
|
||
### Pretty JSON Version | ||
|
||
All of the JSON files above are the minified version. Each one of them also has the pretty version with spacing. For example: | ||
|
||
* List of surah: [unpkg.com/quran-json@latest/json/surahs.pretty.json](https://unpkg.com/quran-json@latest/json/surahs.pretty.json) | ||
* Quran Text: [unpkg.com/quran-json@latest/json/quran/text.pretty.json](https://unpkg.com/quran-json@latest/json/quran/text.pretty.json) | ||
* Quran text with English and Indonesian translations: [unpkg.com/quran-json@latest/json/quran/en-id.pretty.json](https://unpkg.com/quran-json@latest/json/quran/en-id.pretty.json) | ||
* Al-Faatiha: [unpkg.com/quran-json@latest/json/surahs/1.pretty.json](https://unpkg.com/quran-json@latest/json/surahs/1.pretty.json) | ||
|
||
## Generate the JSON | ||
|
||
If you want to generate the JSON by yourself: | ||
|
||
### 1. Clone the Repository | ||
|
||
Clone this repository to your local computer: | ||
|
||
```bash | ||
$ git clone [email protected]:risan/quran-json.git | ||
``` | ||
|
||
### 2. Install the Dependencies | ||
|
||
`CD` into the project directory and install the dependencies: | ||
|
||
```bash | ||
# Go to the project directory | ||
$ cd quran-json | ||
|
||
# Install the dependencies | ||
$ npm install | ||
|
||
# Or if you use Yarn | ||
$ yarn | ||
``` | ||
|
||
### 3. Generate the JSON Files | ||
|
||
Run the following command to generate the JSON files: | ||
|
||
```bash | ||
$ npm run build | ||
|
||
# Or if you use Yarn | ||
$ yarn build | ||
``` | ||
|
||
## Related | ||
|
||
* [tanzil-downloader](https://github.com/risan/tanzil-downloader) | ||
|
||
## License | ||
|
||
CC-BY-SA 4.0 · [Risan Bagja Pradana](https://risan.io) | ||
CC-BY-SA 4.0 · [Risan Bagja Pradana](https://bagja.net) | ||
|
||
## Legal | ||
|
||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
12,472 changes: 6,236 additions & 6,236 deletions
12,472
json/quran-en-id-pretty.json → json/quran/en-id.pretty.json
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
12,472 changes: 6,236 additions & 6,236 deletions
12,472
json/quran-en-pretty.json → json/quran/en.pretty.json
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
12,472 changes: 6,236 additions & 6,236 deletions
12,472
json/quran-id-pretty.json → json/quran/id.pretty.json
Large diffs are not rendered by default.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"number":1,"name":"سورة الفاتحة","transliteration_en":"Al-Faatiha","translation_en":"The Opening","total_verses":7,"revelation_type":"Meccan","verses":[{"number":1,"content":"بِسْمِ ٱللَّهِ ٱلرَّحْمَٰنِ ٱلرَّحِيمِ","translation_en":"In the name of Allah, the Entirely Merciful, the Especially Merciful.","translation_id":"Dengan menyebut nama Allah Yang Maha Pemurah lagi Maha Penyayang."},{"number":2,"content":"ٱلْحَمْدُ لِلَّهِ رَبِّ ٱلْعَٰلَمِينَ","translation_en":"[All] praise is [due] to Allah, Lord of the worlds -","translation_id":"Segala puji bagi Allah, Tuhan semesta alam."},{"number":3,"content":"ٱلرَّحْمَٰنِ ٱلرَّحِيمِ","translation_en":"The Entirely Merciful, the Especially Merciful,","translation_id":"Maha Pemurah lagi Maha Penyayang."},{"number":4,"content":"مَٰلِكِ يَوْمِ ٱلدِّينِ","translation_en":"Sovereign of the Day of Recompense.","translation_id":"Yang menguasai di Hari Pembalasan."},{"number":5,"content":"إِيَّاكَ نَعْبُدُ وَإِيَّاكَ نَسْتَعِينُ","translation_en":"It is You we worship and You we ask for help.","translation_id":"Hanya Engkaulah yang kami sembah, dan hanya kepada Engkaulah kami meminta pertolongan."},{"number":6,"content":"ٱهْدِنَا ٱلصِّرَٰطَ ٱلْمُسْتَقِيمَ","translation_en":"Guide us to the straight path -","translation_id":"Tunjukilah kami jalan yang lurus,"},{"number":7,"content":"صِرَٰطَ ٱلَّذِينَ أَنْعَمْتَ عَلَيْهِمْ غَيْرِ ٱلْمَغْضُوبِ عَلَيْهِمْ وَلَا ٱلضَّآلِّينَ","translation_en":"The path of those upon whom You have bestowed favor, not of those who have evoked [Your] anger or of those who are astray.","translation_id":"(yaitu) Jalan orang-orang yang telah Engkau beri nikmat kepada mereka; bukan (jalan) mereka yang dimurkai dan bukan (pula jalan) mereka yang sesat."}]} | ||
{"number":1,"name":"سورة الفاتحة","transliteration_en":"Al-Faatiha","translation_en":"The Opening","total_verses":7,"revelation_type":"Meccan","verses":[{"number":1,"text":"بِسْمِ ٱللَّهِ ٱلرَّحْمَٰنِ ٱلرَّحِيمِ","translation_en":"In the name of Allah, the Entirely Merciful, the Especially Merciful.","translation_id":"Dengan menyebut nama Allah Yang Maha Pemurah lagi Maha Penyayang."},{"number":2,"text":"ٱلْحَمْدُ لِلَّهِ رَبِّ ٱلْعَٰلَمِينَ","translation_en":"[All] praise is [due] to Allah, Lord of the worlds -","translation_id":"Segala puji bagi Allah, Tuhan semesta alam."},{"number":3,"text":"ٱلرَّحْمَٰنِ ٱلرَّحِيمِ","translation_en":"The Entirely Merciful, the Especially Merciful,","translation_id":"Maha Pemurah lagi Maha Penyayang."},{"number":4,"text":"مَٰلِكِ يَوْمِ ٱلدِّينِ","translation_en":"Sovereign of the Day of Recompense.","translation_id":"Yang menguasai di Hari Pembalasan."},{"number":5,"text":"إِيَّاكَ نَعْبُدُ وَإِيَّاكَ نَسْتَعِينُ","translation_en":"It is You we worship and You we ask for help.","translation_id":"Hanya Engkaulah yang kami sembah, dan hanya kepada Engkaulah kami meminta pertolongan."},{"number":6,"text":"ٱهْدِنَا ٱلصِّرَٰطَ ٱلْمُسْتَقِيمَ","translation_en":"Guide us to the straight path -","translation_id":"Tunjukilah kami jalan yang lurus,"},{"number":7,"text":"صِرَٰطَ ٱلَّذِينَ أَنْعَمْتَ عَلَيْهِمْ غَيْرِ ٱلْمَغْضُوبِ عَلَيْهِمْ وَلَا ٱلضَّآلِّينَ","translation_en":"The path of those upon whom You have bestowed favor, not of those who have evoked [Your] anger or of those who are astray.","translation_id":"(yaitu) Jalan orang-orang yang telah Engkau beri nikmat kepada mereka; bukan (jalan) mereka yang dimurkai dan bukan (pula jalan) mereka yang sesat."}]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.