empty-file-callback
Callback style version of empty-file
const emptyFileCallback = ;const fs = ; ;
Installation
npm install empty-file-callback
API
const emptyFileCallback = ;
emptyFileCallback(filePath [, options], callback)
filePath: String
options: Object
(fs.writeFile
options except for encoding
)
callback: Function
The API is almost the same as fs.writeFile
's, execpt for:
- It only writes
new Buffer(0)
to the file. The data is unchangable. - It doesn't support
encoding
option.
Related project
- empty-file (Promises/A+ version)