Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/coderyi/stringformat
A String Format Kit
https://github.com/coderyi/stringformat
ios string stringextension stringformat stringformatter swift url
Last synced: 20 days ago
JSON representation
A String Format Kit
- Host: GitHub
- URL: https://github.com/coderyi/stringformat
- Owner: coderyi
- License: mit
- Created: 2020-12-12T04:19:07.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-07-24T06:55:30.000Z (over 3 years ago)
- Last Synced: 2024-11-20T19:02:23.797Z (about 2 months ago)
- Topics: ios, string, stringextension, stringformat, stringformatter, swift, url
- Language: Swift
- Homepage:
- Size: 19.5 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
### CocoaPods
```ruby
pod 'StringFormat'
```## Features
- StringFormat
- Date
- DeviceType
- Duration
- Geo
- Locale
- Number
- URLEscaping
- String Extension
- Image
- URL
- Emoji
- Hash
- Padding
- File## Usage
```
StringFormat.stringForDeviceType() // iPhone
StringFormat.stringForDuration(122) // 2:02
StringFormat.isValidUrl("https://github.com") // truevar test: String = "hello"
test = test.rightJustified(width: 6) // " hello"
```## License
Released under [MIT License](LICENSE).