package yurt

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

Unwrap option and raise Not_found if opt is None

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

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 '/..'

OCaml

Innovation. Community. Security.