npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

egypt-banks-scraper

v2.0.0

Published

Scrape exchange rates from Egypt banks

Downloads

24

Readme

Egypt Banks Scraper Version MIT license airbnb code style

Scrape exchange rates from Egypt's banks

Installation

npm install --save egypt-banks-scraper

Getting Started

Require the package

var EGBScraper = require('egypt-banks-scraper');

getExchangeRates takes 3 arguments:

  • banks array: list of banks codes to get its exchange rates
  • currencies array: list of currencies iso code to get from the banks
  • callback function: called when finished with the signature (err, data)

To get all banks with all currencies

EGBScraper.getExchangeRates([], [], (err, data) => {
  // data
});

To get All banks with certain currencies

// Get only USD and EUR exchange rates from all banks
EGBScraper.getExchangeRates([], ['USD', 'EUR'], (err, data) => {
  // data
});

To get All exchange rates in certain banks

EGBScraper.getExchangeRates(['NBG', 'CIB'], [], (err, data) => {
  // data
});

To get the exchange rates for some currencies and some banks

EGBScraper.getExchangeRates(['NBG', 'CIB'], ['USD', 'EUR'], (err, data) => {
  // data
});

Banks

Supported banks

| Code | Bank Name | | ---- | -------------------------------------- | | NBG | National Bank of Greece | | CAE | Credit Agricole | | CBE | Central Bank of Egypt | | NBE | National Bank of Egypt | | CIB | Commercial International Bank | | AAIB | Arab African International bank | | BDC | Banque Du Caire | | BM | Banque Misr | | SCB | Suez Canal Bank | | ABB | Al Baraka Bank | | ABK | Al Ahli bank of kuwait | | SAIB | Société Arabe Internationale de Banque | | MIDB | Misr Iran Development Bank | | UBE | The United Bank of Egypt | | EDBE | Export Development Bank of Egypt | | AB | Alex Bank | | EGB | Egyptian Gulf Bank | | ADIB | Abu Dhabi Islamic Bank | | FIBE | Faisal Islamic Bank Of Egypt | | BBE | Blom Bank Egypt | | MASQ | Mashreq Bank Egypt | | AIBK | Arab Investment Bank | | HDB | Housing and development bank | | AUDI | Audi Bank | | ABE | Agricultural Bank of Egypt | | EALB | Egyptian Arab Land Bank | | AIB | Arab international bank |

To support soon

  • HSBC
  • Ahli United bank
  • AIBK
  • Emirated NBD
  • Arab Bank
  • QNB AlAhli
  • Bank Audi

Development

available predefined NPM scripts. Run them by typing this in your terminal: npm run [script]

| Name | Description | | ---------- | ----------------------------------------------------- | | lint | Runs ESlint on all files from ./src and ./tests | | lint:fix | Runs ESlint and fixes all the inconsistencies | | test | Runs the tests with Mocha | | test:dev | Re-runs the tests whenever a change occurs | | build | Compiles all ES2015 files to ES5 (legacy code) | | clean | Removes the compiled files | | start | Run src/index.js using babel-node

NOTE: There is another script prepublish that runs before you publish the package to NPM. All it does is to run clean and build.

Contributing

Before you submit a pull request, please take the following actions.

  1. Open an issue describing the contribution you would like to make
  2. Discuss until we all agree that your idea is useful for the project
  3. Create a pull request but make sure you follow the style guide and the tests pass
  4. Voila! You've done an amazing job.

Credits

  • Andrei Canta for the work he has put into his npm-starter project
  • Airbnb for the work they've put into the javascript style guide and into the ESlint package.

License

MIT @ Mohamed Mayla