0.2.0 • Published 4 months ago

sms-length v0.2.0

Weekly downloads
63
License
MIT
Repository
github
Last release
4 months ago

Sms-length 💌 📏

A simple utility function to understand how many sms will be required to send a text message via SMS. Largely inspired by sms-counter.

Installation

npm install sms-length

yarn add sms-length

Usage

import { count } from "sms-length";

count("This is a simple text message");

/*

Returns: {
  encoding: "GSM_7BIT",
  length: 29,
  characterPerMessage: 160,
  inCurrentMessage: 29,
  remaining: 131,
  messages: 1,
}

*/

Thanks to

https://github.com/danxexe/sms-counter

0.2.0

4 months ago

0.1.2

2 years ago

0.1.0

3 years ago

0.1.1

3 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago