# ts-smsc

> Library smsc.ru for node.js

Latest version **1.0.6** (published 2022-05-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install ts-smsc
pnpm add ts-smsc
yarn add ts-smsc
bun add ts-smsc
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.6 |
| Published | 2022-05-04 |
| First published | 2021-10-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 380.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | webigorkiev |
| Maintainers | webigorkiev |
| Keywords | sms, smsc, smsc lib, smsc.ru, smsc.ru lib, sms node |

## Links

- npm: https://www.npmjs.com/package/ts-smsc
- Repository: https://github.com/webigorkiev/ts-smsc
- npm.io page: https://npm.io/package/ts-smsc

## Dependencies (1)

- [form-data](https://npm.io/package/form-data.md) ^4.0.0

## Recent versions

- 1.0.6 (latest) — 2022-05-04
- 1.0.5 — 2022-05-01
- 1.0.4 — 2021-11-15
- 1.0.3 — 2021-10-29
- 1.0.2 — 2021-10-29
- 1.0.1 — 2021-10-29
- 1.0.0 — 2021-10-29

## README

<h1 align="center"> ts-smsc </h1>
<p align="center">
  <b>ts-smsc is a library smsc.ru for node.js </b>
</p>

## Documentations

https://webigorkiev.github.io/ts-smsc/

## Installation

```bash
npm i ts-smsc
```

## Usage

```typescript

import {smsc} from "ts-smsc";

const sender = smsc({
    
    // smsc.ConfigureOptions
    login: SMSC_LOGIN,
    password: SMSC_PASSWORD
});

// Send sms
sender.send({
   phones: "+38093100xxxx",
   mes: "Test text"
});

// Or send call code
sender.send({
    phones: "+38093100xxxx",
    mes: "Test text",
    call: 1
});
```

## Async Usage

```typescript
import {smsc} from "ts-smsc";

const sender = smsc({
    
    // smsc.ConfigureOptions
    login: SMSC_LOGIN,
    password: SMSC_PASSWORD
});

(async() => {
    
    // Send call code
    const {data, err, code} = await sender.send({
        phones: "+38093100xxxx",
        mes: "code",
        call: 1
    });
})();

```

## Source

https://smsc.ru/api/

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