An open API service indexing awesome lists of open source software.

https://github.com/ej4/rfc5646

Elixir repo for testing strings against RFC 5646
https://github.com/ej4/rfc5646

elixir rfc-5646

Last synced: 19 days ago
JSON representation

Elixir repo for testing strings against RFC 5646

Awesome Lists containing this project

README

          

# RFC5646

Test strings against [RFC 5646](https://tools.ietf.org/html/rfc5646)

## Usage

```elixir
RFC5646.valid?("sandwich") #=> false
RFC5646.valid?("en-US") #=> true
RFC5646.valid?(["en-US", "en-GB"]) #=> true
```

## Installation

Add `rfc5646` to your list of dependencies in `mix.exs`:

```elixir
def deps do
[{:rfc5646, "~> 0.1.0"}]
end
```

Documentation can be generated with [ExDoc](https://github.com/elixir-lang/ex_doc)
and published on [HexDocs](https://hexdocs.pm). Once published, the docs can
be found at [https://hexdocs.pm/rfc5646](https://hexdocs.pm/rfc5646).