@unitsix/phonenumber-to-double

0.1.0 • Public • Published

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

Dependencies (0)

    Dev Dependencies (5)

    Package Sidebar

    Install

    npm i @unitsix/phonenumber-to-double

    Weekly Downloads

    1

    Version

    0.1.0

    License

    MIT

    Unpacked Size

    7.46 kB

    Total Files

    8

    Last publish

    Collaborators

    • unitsix