simple_idn
Version, currently 0.33 versions
- 0.3latestApr 10, 2021
- 0.2not indexedApr 10, 2021
- 0.1not indexedApr 10, 2021
github.com/kostya/simple_idn
SimpleIdn for Crystal language. Translated from Ruby https://github.com/mmriis/simpleidn
8 stars
0 dependents
License: MIT
Installation
# Add this to your shard.yml
dependencies:
simple_idn:
github: kostya/simple_idn
version: ~> 0.3Then run:
shards installshard.yml
- Crystal
*- License
- MIT
- Author
- Konstantin Makarchev <kostya27@gmail.com>
Dependencies
This version declares no dependencies.
README
# SimpleIdn
SimpleIdn for Crystal language. Translated from Ruby https://github.com/mmriis/simpleidn.
This shard allows easy conversion from punycode ACE strings to unicode UTF-8 strings and visa versa.
The implementation is heavily based on the RFC3492 C example implementation but simplified since it does not preserve case.
## Installation
Add this to your application's `shard.yml`:
```yaml
dependencies:
simple_idn:
github: kostya/simple_idn
```
## Usage
```crystal
require "simple_idn"
puts SimpleIdn.to_unicode("xn--mllerriis-l8a.com")
# => møllerriis.com
puts SimpleIdn.to_ascii("møllerriis.com")
# => xn--mllerriis-l8a.com
```
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
0.3- Tagged
- Apr 10, 2021
- Commit
2ebfdd74fa7c- Crystal
*- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/kostya/simple_idn
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 12, 2026
- Synced
- Aug 12, 2026
- Versions
- 3