Skip to content

Latest commit

 

History

History
36 lines (26 loc) · 710 Bytes

README.md

File metadata and controls

36 lines (26 loc) · 710 Bytes

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