Nasty Popsicle Machine

    update-generated-text-fs

    1.0.0 • Public • Published

    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
    )

    Keywords

    none

    Install

    npm i update-generated-text-fs

    DownloadsWeekly Downloads

    0

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    1.4 kB

    Total Files

    3

    Last publish

    Collaborators

    • sartaj