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
- Host: GitHub
- URL: https://github.com/ej4/rfc5646
- Owner: ej4
- License: mit
- Created: 2017-07-06T21:39:12.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-07-07T13:37:53.000Z (almost 9 years ago)
- Last Synced: 2025-01-13T00:21:01.167Z (over 1 year ago)
- Topics: elixir, rfc-5646
- Language: Elixir
- Size: 3.91 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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).