# email2text-lookup

> Look up Email2Text address using Twilio

Latest version **0.2.0** (published 2022-08-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install email2text-lookup
pnpm add email2text-lookup
yarn add email2text-lookup
bun add email2text-lookup
```

Provides the command `email2text-lookup`.

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.0 |
| Published | 2022-08-19 |
| First published | 2022-08-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 4 |
| Unpacked size | 12.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Dan Klco |
| Maintainers | klcodanr |

## Links

- npm: https://www.npmjs.com/package/email2text-lookup
- npm.io page: https://npm.io/package/email2text-lookup

## Dependencies (4)

- [yargs](https://npm.io/package/yargs.md) ^17.5.1
- [dotenv](https://npm.io/package/dotenv.md) ^16.0.1
- [twilio](https://npm.io/package/twilio.md) ^3.80.1
- [email-to-phone](https://npm.io/package/email-to-phone.md) ^1.0.3

## Recent versions

- 0.2.0 (latest) — 2022-08-19
- 0.1.0 — 2022-08-19

## README

[![Node.js CI](https://github.com/klcodanr/email2text-lookup/actions/workflows/node.js.yml/badge.svg)](https://github.com/klcodanr/email2text-lookup/actions/workflows/node.js.yml)

# Email2Text Lookup

Looks up the email2text address using Twilio.

## Use

### Via CLI

First install:

    npm i -g email2text-lookup

Then execute with:

    email2text-lookup 5558675309 --sid=AC[...] --secret=[...]

More help can be found with the --help flag, e.g.:

    email2text-lookup --help


### As a Module

As a CLI, first install:

    npm i email2text-lookup

Then import and use:

    import { lookupPhoneNumber, lookupEmail2Text } from "email2text-lookup";

    const client = new twilio(twilioSid, twilioSecret);
    let resolved = await lookupPhoneNumber(client, phoneNumber);
    const email2Text = lookupEmail2Text(phoneNumber, resolved.carrier.name);

More help can be found with the --help flag, e.g.:

    email2text-lookup --help

## Tests

To run the tests you must provide the following environment variables:

    TWILIO_SID=AC[...]
    TWILIO_SECRET=[...]

    ## Testing variables
    TEST_KNOWN_GOOD_NUMBER=[...]
    TEST_EXPECTED_EMAIL2SMS=[...]@somecarrier.com
    TEST_EXPECTED_EMAIL2MMS=[...]@somecarrier.com

---
_Source: https://npm.io/package/email2text-lookup · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
