# hinet_sms

> Hinet telecom from Taiwan, sms api module.

Latest version **1.0.1** (published 2015-03-12) · MIT license · 0 weekly downloads

## Install

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

## 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.1 |
| Published | 2015-03-12 |
| First published | 2015-03-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Chia Yu Pai |
| Maintainers | fantasywind |
| Keywords | hinet, sms, telecom, cht |

## Links

- npm: https://www.npmjs.com/package/hinet_sms
- Repository: https://github.com/fantasywind/Hinet_SMS
- Issues: https://github.com/fantasywind/Hinet_SMS/issues
- npm.io page: https://npm.io/package/hinet_sms

## Dependencies (1)

- [bufferpack](https://npm.io/package/bufferpack.md) 0.0.6

## Recent versions

- 1.0.1 (latest) — 2015-03-12
- 1.0.0 — 2015-03-12

## README

# Hinet_SMS
Hinet telecom from Taiwan, sms api module.

## Install
	npm install hinet_sms

## Example

```
var sms = new SMS({
  account: 'HN_NUMBERS',
  password: 'SMS_PASSWORD'
});

sms.on('logined', function () {
  sms.send('0912333333', 'Test Message');
});

sms.connect(function () {
  sms.auth();
});
```

## Methods
The module defines the following functions:

### connect(callback)
Connect socket

### auth()
Get auth to CHT Server

### send(targetNumber, message)
Send a message to target number immediately.

## Events

* logined: when auth successful
* login_failed: auth failed
* sent: the message sent

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