From d1ee1eaa146a46060cbffa0dd449168846d57c63 Mon Sep 17 00:00:00 2001 From: alikhalilifar Date: Thu, 29 Dec 2022 01:19:22 +0300 Subject: [PATCH 1/8] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0e31c60..77a8c7c 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,2 @@ -# bonbast-js -# bonbast-js +# BonbastJS +A simple js scrapper for bonbast exchange rates. From 0cd734214537093126bd733f9bfd71b7ef4414c9 Mon Sep 17 00:00:00 2001 From: alikhalilifar Date: Thu, 29 Dec 2022 02:55:33 +0300 Subject: [PATCH 2/8] Update README.md --- README.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/README.md b/README.md index 77a8c7c..ac0d5d1 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,31 @@ # BonbastJS A simple js scrapper for bonbast exchange rates. + +## Table of Contents + +- [Installation](#installation) +- [Usage](#usage) +- [Support](#support) + +## Installation + +``` +yarn add bonbastjs +npm install bonbastjs +``` + +## Usage + +This package only has a single function to invoke which provides you all the bonbast json data: + +``` +import bonbastjs from 'bonbastjs'; + +(async () => { + const exchangeRates = await bonbastjs(); +})(); +``` + +## Support + +Please [open an issue](https://github.com/alikhalilifar/bonbastjs/issues/new) for support. From 5fade535b33c0fdadc74e249c769faa30599d12c Mon Sep 17 00:00:00 2001 From: alikhalilifar Date: Thu, 29 Dec 2022 02:56:21 +0300 Subject: [PATCH 3/8] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ac0d5d1..d96596c 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ npm install bonbastjs ## Usage -This package only has a single function to invoke which provides you all the bonbast json data: +This package only has a single function to invoke, which returns all the bonbast json data: ``` import bonbastjs from 'bonbastjs'; From 64f27a93a92da64ea39adb2c4ef7582e5fc329a0 Mon Sep 17 00:00:00 2001 From: alikhalilifar Date: Thu, 29 Dec 2022 02:57:57 +0300 Subject: [PATCH 4/8] Update README.md --- README.md | 87 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 87 insertions(+) diff --git a/README.md b/README.md index d96596c..1de598e 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,93 @@ import bonbastjs from 'bonbastjs'; })(); ``` +Sample response: + +``` +{ + try1: '2355', + month: 10, + emami1: '21900000', + afn2: '500', + afn1: '505', + rub2: '600', + azadi1_22: '12700000', + bhd2: '116350', + azn1: '25940', + bhd1: '116850', + azadi1g: '4600000', + bourse: '1904324.2', + try2: '2335', + cny1: '6310', + cny2: '6290', + cad1: '32410', + cad2: '32310', + jpy1: '3280', + thb1: '1265', + usd1: '44000', + usd2: '43900', + thb2: '1260', + azn2: '25840', + dkk1: '6290', + amd2: '1115', + day: 8, + minute: '17', + amd1: '1120', + bitcoin: '16533.72', + hour: '03', + sar2: '11685', + rub1: '605', + azadi1g2: '4300000', + azadi12: '20000000', + eur1: '46760', + eur2: '46610', + emami12: '21550000', + second: '04', + omr1: '114415', + year: 1401, + chf2: '47285', + chf1: '47435', + azadi1_42: '9600000', + jpy2: '3270', + kwd2: '143415', + kwd1: '143815', + sek1: '4210', + gbp2: '52815', + gbp1: '53015', + sek2: '4195', + myr1: '9960', + myr2: '9930', + omr2: '114115', + azadi1: '20700000', + azadi1_2: '13000000', + aud2: '29655', + azadi1_4: '10000000', + aud1: '29755', + dkk2: '6270', + inr2: '530', + inr1: '530', + last_modified: 'December 28, 2022 16:35', + aed2: '11975', + aed1: '11995', + iqd2: '3005', + qar1: '12100', + qar2: '12070', + iqd1: '3015', + hkd2: '5625', + hkd1: '5655', + sar1: '11715', + created: 'December 28, 2022 00:01', + sgd2: '32540', + sgd1: '32640', + ounce: '1805.56', + weekday: 'Thursday', + mithqal: '8630000', + gol18: '1992242', + nok1: '4455', + nok2: '4440' +} +``` + ## Support Please [open an issue](https://github.com/alikhalilifar/bonbastjs/issues/new) for support. From 3f80d3c8601bac03650a855e67884e6e3e05f8e2 Mon Sep 17 00:00:00 2001 From: alikhalilifar Date: Thu, 29 Dec 2022 03:01:51 +0300 Subject: [PATCH 5/8] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1de598e..ea6be29 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # BonbastJS -A simple js scrapper for bonbast exchange rates. +A simple js scrapper to get all the bonbast exchange rates. ## Table of Contents From 2dcb7cb8fa54d4f38881804c346d2871a38ac2f9 Mon Sep 17 00:00:00 2001 From: alikhalilifar Date: Thu, 29 Dec 2022 03:40:35 +0300 Subject: [PATCH 6/8] Update README.md --- README.md | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index ea6be29..d2d8637 100644 --- a/README.md +++ b/README.md @@ -9,16 +9,25 @@ A simple js scrapper to get all the bonbast exchange rates. ## Installation +### Package manager + +Using npm: + +```bash +npm install bonbastjs ``` + +Using yarn: + +```bash yarn add bonbastjs -npm install bonbastjs ``` ## Usage This package only has a single function to invoke, which returns all the bonbast json data: -``` +```js import bonbastjs from 'bonbastjs'; (async () => { @@ -28,7 +37,7 @@ import bonbastjs from 'bonbastjs'; Sample response: -``` +```js { try1: '2355', month: 10, From c453edad51853e0f432f3716277befa5c3236ae7 Mon Sep 17 00:00:00 2001 From: alikhalilifar Date: Thu, 29 Dec 2022 03:41:07 +0300 Subject: [PATCH 7/8] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index d2d8637..49548e6 100644 --- a/README.md +++ b/README.md @@ -30,6 +30,8 @@ This package only has a single function to invoke, which returns all the bonbast ```js import bonbastjs from 'bonbastjs'; +// usage + (async () => { const exchangeRates = await bonbastjs(); })(); From d8b682016832cf71e6290d307cfbd6d1f8e414d4 Mon Sep 17 00:00:00 2001 From: alikhalilifar Date: Thu, 29 Dec 2022 03:41:19 +0300 Subject: [PATCH 8/8] Update README.md --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index 49548e6..87d451f 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,6 @@ This package only has a single function to invoke, which returns all the bonbast import bonbastjs from 'bonbastjs'; // usage - (async () => { const exchangeRates = await bonbastjs(); })();