simple_idn

Version, currently 0.13 versions

github.com/kostya/simple_idn

SimpleIdn for Crystal language. Translated from Ruby https://github.com/mmriis/simpleidn

8 stars
0 dependents
License: MIT

Nothing has been indexed for 0.1 yet. The tag is recorded, its shard.yml has not been read, so the manifest and dependency list below are empty because they are unknown rather than because they are absent.

Installation

# Add this to your shard.yml
dependencies:
  simple_idn:
    github: kostya/simple_idn
    version: ~> 0.1

Then run:

shards install

shard.yml

No shard.yml has been indexed for 0.1. You can read it on the repository.

Dependencies

Unknown: the shard.yml for this version has not been read yet.

README

This README is the one indexed from the repository at its latest ref, not from the tag for this version.

# 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
```