node package manager
Love JavaScript? Your insights can make it even better. Take the 2017 JavaScript Ecosystem Survey »


Basic Usage

sms-address returns an email address that can be used to send an SMS (or MMS) message.

It takes two arguments, phone number, and carrier.

var sms = require('sms-address');
var email = sms('123-456-7890', 'Verizon');
email === '';

sms-address also exports the carriers it supports. US only for now.

var sms = require('sms-address');
// outputs: 
  "Alaska Communications": "",
  "Alltel": "",
  "Alltel-mms": "",
  "Ameritech": "",
  "AT&T": "",
  "AT&T-mms": "",
  "BellSouth": "",
  "Bluegrass Cellular": "",
  "Bluegrass Cellular-mms": "",
  // and so on and so forth ...