Update Generated Text
Update or append a block of generated text.
Append Example
const startString = '# _Start_Generated_Text'const endString = '# _End_Generated_Text' const newContents = 'coverage.tmp' const text = `# Gitignore./.DS_Store` const newText = /* # Gitignore ./.DS_Store # _Start_Generated_Text coverage .tmp # _End_Generated_Text*/console
Replace Example
const startString = '# _Start_Generated_Text'const endString = '# _End_Generated_Text' const newContents = 'coverage.tmp' const text = `# Gitignore # _Start_Generated_Textlib# _End_Generated_Text ./.DS_Store` const newText = /* # Gitignore # _Start_Generated_Text coverage .tmp # _End_Generated_Text ./.DS_Store*/console