JSPM

sms-address

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 87
  • Score
    100M100P100Q60771F

Get the email address to send SMS messages to based on number and carrier.

Package Exports

  • sms-address

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (sms-address) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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 === '1234567890@vtext.com';

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

var sms = require('sms-address');

console.log(sms.carriers)

// outputs:
{
  "Alaska Communications": "msg.acsalaska.com",
  "Alltel": "sms.alltelwireless.com",
  "Alltel-mms": "mms.alltelwireless.com",
  "Ameritech": "paging.acswireless.com",
  "AT&T": "txt.att.net",
  "AT&T-mms": "mms.att.net",
  "BellSouth": "bellsouth.cl",
  "Bluegrass Cellular": "sms.bluecell.com",
  "Bluegrass Cellular-mms": "mms.myblueworks.com",
  // and so on and so forth ...