Skip to content

Update or append a block of generated text from a file.

Notifications You must be signed in to change notification settings

sartaj/update-generated-text-fs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
)

About

Update or append a block of generated text from a file.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published