DZ (alpha 2 code for algeria) phone number processing . Parsing , region detection and operator detection for algerian numbers
Star this project if you're interested :)- Support for all of algeria's current mobile operators.
- Support for all algerian wilayas.
- Simple and beginner friendly.
- Well documented with examples.
- Flexible, easy to expand when a new operator hits the scene.
- No third party packages used, pure JavaScript and regular expressions.
1 - Install the package via npm
npm install dzpnp
The regular expressions behind this project are actually very simple and very straight forward, everything is explained in the sections below.
- Remove the country/local codes
Here is a diagram about it- Select the first digit on the processed version.
- Compare with the list of operator/wilaya
Pull requests and issues are always welcome , irrelevant or non-useful ones will be closed.
Copyright (c) 2020 Copyright Holder All Rights Reserved.
Inspired by py-dz-phone-number.