jprichardson / node-jsonfile

Easily read/write JSON files.
MIT License
1.2k stars 321 forks source link

updateFile and updateFileSync support #75

Closed manidlou closed 7 years ago

manidlou commented 7 years ago

Please let me know if you think it is reasonable to add these two functions or no need for them :smile:

They read the file, update the file contents with obj using something like Object.assign(), then write back the updated contents to the same file.

RyanZim commented 7 years ago

Related/duplicate of https://github.com/jprichardson/node-jsonfile/issues/52.