View Source Recase.PathCase (recase v0.8.1)

Module to convert strings to path/case.

This module should not be used directly.

Path case preserves the original case, but inserts path separator to appropriate places.

By default uses / as a path separator.

Examples

iex> Recase.to_path "foo_barBaz-λambdaΛambda-привет-Мир"
"foo/bar/Baz/λambda/Λambda/привет/Мир"

Summary

Functions

Link to this function

convert(value, separator \\ "/")

View Source
@spec convert(String.t(), String.t()) :: String.t()