smsimple
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

SMSimple 😖🤳

Build Status codecov CodeFactor

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

Usage

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 - MIT

💖 Built by Joe at TADHack London 2019 💖

Readme

Keywords

none

Package Sidebar

Install

npm i smsimple

Weekly Downloads

0

Version

1.0.0

License

ISC

Unpacked Size

14 kB

Total Files

13

Last publish

Collaborators

  • isnit0