Character counter for SMS messages.
npm install sms-counter-npmSMS Counter
=============================
Character counter for SMS messages.
Usage
----------
``javascript`
SmsCounter.count('content of the SMS')
This will return the following object:
`javascript`
{
encoding: "GSM_7BIT",
length: 18,
messages: 1,
per_message: 160,
remaining: 142
}
jQuery Plugin
----------
Given the following markup:
`html`
You can use the countSms jQuery extension to update the count on keyup:
`javascript``
$('#message').countSms('#sms-counter')
TODO
----
- Better docs
Known Issue
----
(none)
Other Languages
----
- PHP: https://github.com/acpmasquerade/sms-counter-php
SMS Counter is released under the MIT License.
Thanks to
----
https://github.com/danxexe/sms-counter