Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mordisacks/parseholylandphonejs
ParseHolyLandPhone Javascript
https://github.com/mordisacks/parseholylandphonejs
israel israeli kosher palestine palestinian phone-number
Last synced: 4 days ago
JSON representation
ParseHolyLandPhone Javascript
- Host: GitHub
- URL: https://github.com/mordisacks/parseholylandphonejs
- Owner: MordiSacks
- License: mit
- Created: 2017-10-26T14:02:02.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2021-06-24T11:26:05.000Z (over 3 years ago)
- Last Synced: 2024-11-01T23:47:36.910Z (14 days ago)
- Topics: israel, israeli, kosher, palestine, palestinian, phone-number
- Language: JavaScript
- Size: 3.91 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# ParseHolyLandPhone
Parse Holy land (Israel/Palestine) phone numbers## usage
`npm i parseholylandphone````js
import ParseHolyLandPhone from 'parseholylandphone';// via new instance
var number = new ParseHolyLandPhone('025121234');// via static method
var number = ParseHolyLandPhone.create('025121234');number.isValid();
```## Available methods
* `isValid` Checks if phone number is a valid Israeli/Palestinian phone number.
* `isIsraeli` Checks if phone number is Israeli.
* `isPalestinian` Checks if phone number is Palestinian.
* `isLandLine` Checks if phone number is LandLine.
* `isSpecial` Checks if phone number is Special (*1234).
* `isMobile` Checks if phone number is Mobile.
* `isBusiness` Checks if phone number is Business (1700, 1800, etc).
* `isTollFree` Checks if phone number is TollFree (1800, etc).
* `isPremium` Checks if phone number is Premium (1900, etc).
* `isKosher` Checks if phone number is Kosher (phone supports only calls).
* `isErotic` Checks if phone number is Erotic (1919).
* `isSmsable` Checks if phone number can receive an sms (text) .
* `getInternational` Returns phone number transformed to international format 025231234 > 97225231234.
* `getPhoneNumber` Returns the parsed phone number.
### all `is` functions have a reverse function `isNot`.