1.0.1 • Published 3 years ago
async-file-manipulation v1.0.1
description
promisification of the most widely used file operation allowing you to use them while avoiding callback hell (while giving the default callback of giving the content or throwing an exception and nothing more).
to use simply import the library and use the functions provided:
- writeFileAsync(path, data)
- appendFileAsync(path, data)
- readFileAsync(path, format (is set to default as "utf-8"))
- openFileAsync(path, mode)
- renameFileAsync(oldPath, newPath)
- deleteFileAsync(path)
1.0.1
3 years ago