You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Creates a file with the given text, or appends to it if it already exists and the condition is met.
4
+
* Runs fs' `appendFileSync` on a target file, but only a specified condition is met in regards to the file's content.
5
5
*
6
-
* @param filepath The path to the file to create or append to.
7
-
* @param text The text to write or append to the file.
8
-
* @param condition A function that receives the current file content and returns `true` if the text should be appended.
6
+
* @param filepath The path to the file.
7
+
* @param text The text to append to the file.
8
+
* @param condition A function that receives the current file content and returns `true` if the text should be appended to it, the condition is skipped when the file is being created.
0 commit comments