0.1.0 • Published 6 years ago

@unitsix/phonenumber-to-double v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
6 years ago

Coverage Status Build Status

Phone Number to Double

A small library that formats a phone number to double. Useful for Lambdas triggered by Amazon Connect.

Installation

npm install @unitsix/phonenumber-to-double

Usage

const phonenumberToDouble = require('@unitsix/phonenumber-to-double') 

OR

import phonenumberToDouble from '@unitsix/phonenumber-to-double' //ES6

const fullmsn = '+61400000000'
const msn = phonenumberToDouble(fullmsn)

//returns 400000000

Tests

npm test or make test