1.0.1 • Published 4 years ago
async-file-manipulation
Licence
IDGAF
Version
1.0.1
Deps
0
Size
3 kB
Vulns
0
Weekly
0
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)