Skip to content

Simple library to help calculate the number of SMS corresponding to a certain text content.

License

Notifications You must be signed in to change notification settings

fasttrack-solutions/sms-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SMS Calculator

npm
Simple library to help calculate the number of SMS corresponding to a certain text content.

Install

npm i --save @fasttrack-solutions/sms-calculator

Usage

SMSCalculator.getCount('📱Some really cool SMS content 🔥')

This will return the following object:

{
  maxCharCount: 70,
  numberOfSMS: 1,
  remaining: 34,
  totalLength: 36
}

Demo

Check the live demo on codepen.io

About

Simple library to help calculate the number of SMS corresponding to a certain text content.

Resources

License

Stars

Watchers

Forks

Packages