Skip to content
This repository has been archived by the owner on Jan 2, 2023. It is now read-only.

alma/elm-sms-length

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

elm-sms-length lib

Build Status

Example

import SmsLength

SmsLength.charsUsed "Hello World!"
12

SmsLength.charsInSms "Hello World!"
160

SmsLength.numberOfSms <| String.repeat 160 "H"
1

SmsLength.numberOfSms <| String.repeat 161 "H"
2

SmsLength.charsUsed "Hello World 🎅"
14

SmsLength.charsInSms "Hello World 🎅"
70

SmsLength.numberOfSms "Hello World 🎅"
1

SmsLength.numberOfSms <| String.repeat 70 "🎅"
1

SmsLength.numberOfSms <| String.repeat 71 "🎅"
2

Contributing

We're happy to receive any feedback and ideas for about additional features. Any input and pull requests are very welcome and encouraged. If you'd like to help or have ideas, get in touch with us on github by opening an issue!

About

A lib that from a string tells you how many SMS would be needed.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages