Additional methods and patches for node fs module
enfs stands for [E]asy [N]ode [fs]
This module is intended to work as a sub-module of enfs
This module is just a wrapper for enfspath to enable the use of promises.
enfspatch-promise is a drop-in replacement for native
fs module, you just need to include
it instead of the native module.
const enfs = ;
All async methods finish with 'P', example: open => openP
const fs = ; //You don't need to do this anymore
and all the methods from native fs module are available fir use with promises
All the methods follows the node culture.
- Async: Every async method returns an Error in the first callback parameter
- Sync: Every sync method throws an Error.
Creative Commons Attribution 4.0 International License
This work is licensed under the Creative Commons Attribution 4.0 International License. To view a copy of this license, visit CC-BY-4.0.