country_by_phone
0.1.1 • Public • Published Get country info by phone number
Usage
import cbp from 'country_by_phone'; // All
import {
getLocation,
} from 'country_by_phone'; // Separate
console.log(cbp.getIso2('+7705311'));
// KZ
console.log(getLocation('+7705311'));
// Kazakhstan
Remarks
- Full length of the phone number is not required. Five digits are enough
- Possible phone formats (equivalent):
-
require
not supported yet
Dependencies (0)
Dev Dependencies (0)
Package Sidebar
Install
Weekly Downloads