js_string

This library get you to get JavaScript string length in Elixir codes.


License
Apache-2.0

Documentation

JSString (for Elixir)

CircleCI

There are differences between JavaScript string length and Elixir string length. JavaScript String.prototype.length sometimes doesn't return the actual string length. For example, a length of some Emoji is sometimes more than 1.

This library get you to get JavaScript string length in Elixir codes.

Installation

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

def deps do
  [
    {:elixir_js_string, "> 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/elixir_js_string.