Skip to content

Commit

Permalink
Release: v1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Mostafa-wael committed Jul 18, 2022
1 parent 80286af commit a2d5da0
Show file tree
Hide file tree
Showing 31 changed files with 28 additions and 11,948 deletions.
10 changes: 5 additions & 5 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
./github
./data
./documnetation
./testcases
./windows/
.github/
data/
documnetatio/
testcases/
windows/
./gitignore
51 changes: 19 additions & 32 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
# Quran-CLI

A simple command line interface for listening to Quran.
## Used API
[mp3quran](https://mp3quran.net/eng/api)
## Installation
- run `npm install -g typescript` if you do not have typescript globally
- `npm install`
We are using the [mp3quran](https://mp3quran.net/eng/api) api.
## Dependencies
- Install **mpv** as it is required for playing the audio.
- Debian based distributions
`sudo add-apt-repository ppa:mc3man/mpv-tests`
Expand All @@ -15,17 +12,18 @@ A simple command line interface for listening to Quran.


## How to use
- To build the source code: `tsc`
- To use without installing the package: `npx @quran-cli/q-cli [options]`
- Or install it globally: `sudo npm install @quran-cli/q-cli -g` and use it as `q-cli [options]`
- To show the version: `q-cli -v`
- To show help: `node q-cli -h`
- To show help: `q-cli -h`
```
Quran-CLI
Listen to the Quran from your terminal
Options
-n, --showRadio Shows all available radio channels
-n, --showRadios Shows all available radio channels
-d, --radio number Play specific radio
-c, --reciterSurah number[] lay specific surah by a specific reciter.
If no surah specified, it will shows the available suras for the specified
Expand All @@ -37,28 +35,17 @@ Options
^_^
Recall us in your doa'!
Recall us in your doa'!
```
- Show all available radios channels: `node q-cli -n`
- Play specific radio: `node q-cli -d <radio index>`
- Show all available reciters: `node q-cli -r`
- Play specific surah by a specific reciter: `node q-cli -c <reciter index> <surah index>`
- Show all available suras by a specific reciter : `node q-cli -c <reciter index>`
- Show all suras in the Quran: `node q-cli -s`

## Documentation
- 'sudo npm install -g jsdoc'
- 'jsdoc -d documentation *.js modes/**/*.js utilities/*.js'


## TODO
1. Add more detailed instructions.
2. Add unit tests.
3. publish as npm package.
4. Add ability to show the verses/tafseer, ...
5. Reciter playlist mode.
6. Optimize CPU and data transfer.
7. Docker image if feasible.
8. Make a vs code extension.
9. Configure the pipelines.
10. Documentation doesn't include sub-folders.
- Show all available radios channels: `q-cli -n`
- Play specific radio: `q-cli -d <radio index>`
- Show all available reciters: `q-cli -r`
- Play specific surah by a specific reciter: `q-cli -c <reciter index> <surah index>`
- Show all available suras by a specific reciter : `q-cli -c <reciter index>`
- Show all suras in the Quran: `q-cli -s`

## How to build locally
- Install typescript using: `npm install -g typescript` if you do not have typescript globally
- Install dependencies: `npm install`
- Build the source files: `npm run build`
- Run the index: `node src/index.js [options]`
Binary file removed documentation/fonts/OpenSans-Bold-webfont.eot
Binary file not shown.
1,830 changes: 0 additions & 1,830 deletions documentation/fonts/OpenSans-Bold-webfont.svg

This file was deleted.

Binary file removed documentation/fonts/OpenSans-Bold-webfont.woff
Binary file not shown.
Binary file removed documentation/fonts/OpenSans-BoldItalic-webfont.eot
Binary file not shown.
1,830 changes: 0 additions & 1,830 deletions documentation/fonts/OpenSans-BoldItalic-webfont.svg

This file was deleted.

Binary file removed documentation/fonts/OpenSans-BoldItalic-webfont.woff
Binary file not shown.
Binary file removed documentation/fonts/OpenSans-Italic-webfont.eot
Binary file not shown.
1,830 changes: 0 additions & 1,830 deletions documentation/fonts/OpenSans-Italic-webfont.svg

This file was deleted.

Binary file removed documentation/fonts/OpenSans-Italic-webfont.woff
Binary file not shown.
Binary file removed documentation/fonts/OpenSans-Light-webfont.eot
Binary file not shown.
1,831 changes: 0 additions & 1,831 deletions documentation/fonts/OpenSans-Light-webfont.svg

This file was deleted.

Binary file removed documentation/fonts/OpenSans-Light-webfont.woff
Binary file not shown.
Binary file removed documentation/fonts/OpenSans-LightItalic-webfont.eot
Binary file not shown.
1,835 changes: 0 additions & 1,835 deletions documentation/fonts/OpenSans-LightItalic-webfont.svg

This file was deleted.

Binary file not shown.
Binary file removed documentation/fonts/OpenSans-Regular-webfont.eot
Binary file not shown.
1,831 changes: 0 additions & 1,831 deletions documentation/fonts/OpenSans-Regular-webfont.svg

This file was deleted.

Binary file removed documentation/fonts/OpenSans-Regular-webfont.woff
Binary file not shown.
65 changes: 0 additions & 65 deletions documentation/index.html

This file was deleted.

25 changes: 0 additions & 25 deletions documentation/scripts/linenumber.js

This file was deleted.

202 changes: 0 additions & 202 deletions documentation/scripts/prettify/Apache-License-2.0.txt

This file was deleted.

2 changes: 0 additions & 2 deletions documentation/scripts/prettify/lang-css.js

This file was deleted.

Loading

0 comments on commit a2d5da0

Please sign in to comment.