Narcoleptic Programmers' Medicine

    @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

    Install

    npm i @unitsix/phonenumber-to-double

    DownloadsWeekly Downloads

    1

    Version

    0.1.0

    License

    MIT

    Unpacked Size

    7.46 kB

    Total Files

    8

    Last publish

    Collaborators

    • unitsix