nmbrone / ms

A tiny millisecond conversion utility for elixir

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ms

CI

A tiny millisecond conversion utility for elixir.

Examples

import Ms

ms("1s") # 1000
ms("2 seconds") # 2000
ms({1, :second}) # 1000

Installation

If available in Hex, the package can be installed by adding ms to your list of dependencies in mix.exs:

def deps do
  [
    {:ms, "~> 0.1.0"}
  ]
end

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/ms.

About

A tiny millisecond conversion utility for elixir

License:MIT License


Languages

Language:Elixir 100.0%