# routesms

> Simple Library for easy Route Mobile services integration: http://www.routemobile.com/ - SMS Gateway solution

Latest version **1.0.3** (published 2016-10-02) · ISC license · 0 weekly downloads

## Install

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

## 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.3 |
| Published | 2016-10-02 |
| First published | 2016-09-09 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Mustafa Segun A |
| Maintainers | segsalerty |
| Keywords | sms, routesms, gateway, nodejs, expressjs, flashsms |

## Links

- npm: https://www.npmjs.com/package/routesms
- Repository: https://github.com/segsalerty2013/routesms
- Homepage: https://github.com/segsalerty2013/routesms#readme
- Issues: https://github.com/segsalerty2013/routesms/issues
- npm.io page: https://npm.io/package/routesms

## Dependencies (2)

- [request](https://npm.io/package/request.md) 2.x.x
- [urlencode](https://npm.io/package/urlencode.md) 1.1.x

## Recent versions

- 1.0.3 (latest) — 2016-10-02
- 1.0.2 — 2016-09-09
- 1.0.1 — 2016-09-09
- 1.0.0 — 2016-09-09

## README

# routesms
Simple Javascript Library for easy Route Mobile services integration: [http://www.routemobile.com](http://www.routemobile.com) - SMS Gateway solution

For your reliable local integration to bulk SMS, TTS and more in Nigeria:
[http://betasms.com.ng](http://betasms.com.ng)

### Installation

`npm install routesms`

### How to use ?

```javascript
var routesms = require('routesms');

routesms.connection = {
    host:"route-sms-ip",
    port:"port-given",
    username:"xxxxxxx",
    password:"xxxxxxxxx"
};
routesms.sender.source = "message-from";
//use
routesms.sender.destinaton.push('telephone-number');
//to send to a single telephone number
//or
routesms.sender.destinaton = ['array-of-many-numbers'];
// to send to many telephone numbers in bulk

routesms.sender.message = "message-content";

routesms.send('message-type [sms or flash]-optional(sms is default)', function(response){
//response gives you {status: 0/1, message:"description-of-the-response-status",
//message_id:"message-id-on-successful-request"}
  console.log(response);
});
```

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