Nf.Helper (neo_faker v0.4.4)
View SourceProvides utility functions commonly used across modules.
Summary
Types
Path to the priv/lib
directory
Functions
Returns the absolute path to the lib/data/
directory.
Reads an .exs
script file from the lib/data/
directory and returns its contents as a map.
Types
@type exs_path() :: [String.t()]
Path to the priv/lib
directory
Functions
@spec get_data_path() :: String.t()
Returns the absolute path to the lib/data/
directory.
This path is useful for loading dynamic files, such as .exs
scripts.
Reads an .exs
script file from the lib/data/
directory and returns its contents as a map.