Nf.Helper (neo_faker v0.5.0)
View SourceProvides utility functions commonly used across modules.
Summary
Types
Path to the lib/data/
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 lib/data/
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.