# smsimple

> [![Build Status](https://travis-ci.org/ISNIT0/smsimple.svg?branch=master)](https://travis-ci.org/ISNIT0/smsimple) [![codecov](https://codecov.io/gh/isnit0/smsimple/branch/master/graph/badge.svg)](https://codecov.io/gh/isnit0/smsimple) [![CodeFactor](https

Latest version **1.0.0** (published 2019-10-13) · ISC license · 0 weekly downloads

## Install

```sh
npm install smsimple
pnpm add smsimple
yarn add smsimple
bun add smsimple
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2019-10-13 |
| First published | 2019-10-13 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 11 |
| Unpacked size | 13.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | isnit0 |

## Links

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

## Dependencies (11)

- [nyc](https://npm.io/package/nyc.md) ^13.3.0
- [tslint](https://npm.io/package/tslint.md) ^5.13.1
- [twilio](https://npm.io/package/twilio.md) ^3.35.1
- [ts-node](https://npm.io/package/ts-node.md) ^8.0.3
- [tap-spec](https://npm.io/package/tap-spec.md) ^5.0.0
- [blue-tape](https://npm.io/package/blue-tape.md) ^1.0.0
- [typescript](https://npm.io/package/typescript.md) ^3.3.3333
- [telesignsdk](https://npm.io/package/telesignsdk.md) ^2.2.1
- [tsconfig-paths](https://npm.io/package/tsconfig-paths.md) ^3.8.0
- [@types/blue-tape](https://npm.io/package/@types/blue-tape.md) ^0.1.32
- [simwood-api-node](https://npm.io/package/simwood-api-node.md) ^1.0.3

## Recent versions

- 1.0.0 (latest) — 2019-10-13

## README

# SMSimple 😖🤳

[![Build Status](https://travis-ci.org/ISNIT0/smsimple.svg?branch=master)](https://travis-ci.org/ISNIT0/smsimple) [![codecov](https://codecov.io/gh/isnit0/smsimple/branch/master/graph/badge.svg)](https://codecov.io/gh/isnit0/smsimple) [![CodeFactor](https://www.codefactor.io/repository/github/isnit0/smsimple/badge)](https://www.codefactor.io/repository/github/isnit0/smsimple)


Sending SMS messages is easy, but all the different providers have different APIs.<br />
SMSimple makes it easy to use any provider without installing countless libraries, in a type-safe way.

## Usage
```typescript
import { SMSimple } from 'smsimple';

const smSimple = new SMSimple({ // All provider credentials are optional
    simwood: {
        account: string,
        username: string,
        password: string,
    },
    twilio: {
        accountSid: string,
        authToken: string,
    },
    telesign: {
        customerId: string,
        apiKey: string,
        rest_endpoint?: string,
        timeout?: number,
    },
});

const normalisedNumber: ValidPhoneNumber = smSimple.normalise('07472955629');

smSimple.simwood(fromNumber, toNumber, messageBody);
smSimple.twilio(fromNumber, toNumber, messageBody);
smSimple.telesign(fromNumber, toNumber, messageBody);

```

[./LICENSE](./LICENSE) - MIT

💖 Built by [Joe](https://simmsreeve.com) at [TADHack London 2019](https://tadhack.com/2019/) 💖

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