Changes
- Refactored code
- Use
fs.createWriteStream
in the main function to improve performance.
Added
- Added
overwrite
option - Added
increment
option
See the README for more details.
Removed
- Removed support for passing a custom string on
options.newline
. This should be done before passing the contents towrite()
- The
.promise
method was removed since the main export returns a promise, making the method unnecessary.
- improved documentation
Added
- promise support
Changed
- The main export will now return a promise if no callback is passed