package yurt

  1. Overview
  2. Docs
val unwrap_option : 'a option -> 'b

Unwrap option and raise Not_found if opt is None

val unwrap_option_default : 'a option -> 'b -> 'c

Get the value of an option type or return `d`

val uuid4 : unit -> string

Generate a UUID (verison 4)

val safe_path_regexp : Str.regexp
val is_safe_path : ?prefix:string -> string -> bool

Check if a path contains '/..'