JSPM

@marcinkowalczyk/sms-counter

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 28
  • Score
    100M100P100Q60126F
  • License MIT

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

Package Exports

  • @marcinkowalczyk/sms-counter

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@marcinkowalczyk/sms-counter) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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