1.0.0 • Published 5 years ago

update-generated-text-fs v1.0.0

Weekly downloads
1
License
MIT
Repository
-
Last release
5 years ago

Update Generated Text

Update or append a block of generated text from a file. Uses update-generated-text.

Example

import updateGeneratedFile from 'update-generated-text-fs'

const startString = '# _Start_Generated_Text'
const endString = '# _End_Generated_Text'

const newContents = '
coverage
.tmp
'

const file = __dirname + '.gitignore'

const newText = updateGeneratedText(
  startString,
  endString,
  newContents,
  file
)