function failure(error, options) {
  if (!options.silent) {
    warn(`".env*" files loading failed: ${error.message || error}`);
  }

  return { error };
}
"dotenv-flow" initialization function (API entry point).

Allows configuring dotenv-flow programmatically.

@param {object} [options] - configuration options
@param {string} [options.node_env=process.env.NODE_ENV] - node environment (development/test/production/etc.)
@param {string} [options.default_node_env] - the default node environment
@param {string} [options.path=process.cwd()] - path to `.env*` files directory
@param {string} [options.pattern=".env[.node_env][.local]"] - `.env*` files' naming convention pattern
@param {string[]} [options.files] - an explicit list of `.env*` files to load (note that `options.[default_]node_env` and `options.pattern` are ignored in this case)
@param {string} [options.encoding="utf8"] - encoding of `.env*` files
@param {boolean} [options.purge_dotenv=false] - perform the `.env` file {@link unload}
@param {boolean} [options.debug=false] - turn on detailed logging to help debug why certain variables are not being set as you expect
@param {boolean} [options.silent=false] - suppress all kinds of warnings including ".env*" files' loading errors
@return {{ parsed?: object, error?: Error }} with a `parsed` key containing the loaded content or an `error` key with an error that is occurred