Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

carrier-gateways

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

carrier-gateways

Email-to-sms gateways for common US carriers

  • 0.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Carrier Gateways

A simple package to translate cell phone numbers and carriers into SMS gateway email addresses. Useful for sending notifications via SMS without having to have SMS infrastructure.

Currently, the list is very US-centric, but PR's with other country's gateways would be very welcome.

Installation

Via npm:

npm install carrier-gateways

Usage

  • carrierGateways.getAddress(number, carrierName, [mms]) - return the email address for the given number and carrier.

    number must be a 10-digit (US) phone number. All non-numeric digits, and a leading US country-code is stripped out.

    carrierName should be a name as listed in carrier-addresses.json.

    mms - if truthy, and the carrier has a separate address for mms messages, use that address instead.

    Example:

    var carrierGateways = require("carrier-gateways");
    
    // Look up an address.
    carrierGateways.getAddress("801-234-5678", "Verizon");
    // returns 8012345678@vztext.com
    

FAQs

Package last updated on 05 May 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc