sms-counter

SMS Counter =============================

Usage no npm install needed!

<script type="module">
  import smsCounter from 'https://cdn.skypack.dev/sms-counter';
</script>

README

SMS Counter

Character counter for SMS messages.

Usage

SmsCounter.count('content of the SMS')

This will return the following object:

{
    encoding: "GSM_7BIT",
    length: 18,
    messages: 1,
    per_message: 160,
    remaining: 142
}

Thanks to

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