.*: Expects content as array and serializes by joining array using new line character.
To ignore file extension and force treat the file as a certain type, you can pass the option treatAs as e.g. json.
The mergeStrategy option can be used to customize how the new content is merged if the target file already exists.
By default the file is simply overwritten.
When create is set to false no action is taken if the file does not already exist.
When pretty is set to true, the output is formatted more compact.
When keepOrder is set to true and a file is overwritten,
the new content is ordered according to the existing content (e.g. for json and yml)
To resolve the original file before overwrite merging pass the option as true.
Important
Do not use this library for loading if you don't trust the source of the files you are loading!