enfspatchdeprecated

Patches for node fs module

Usage no npm install needed!

<script type="module">
  import enfspatch from 'https://cdn.skypack.dev/enfspatch';
</script>

README

Build Status Build status Codacy Badge Donate

NPM

enfspatch

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

Description

This module will change some behaviors of fs module from node such as creating a queue for opening files when limit is reached, catching the error's and proceeding with the process when possible. This module implements many methods through enfsaddins

Usage

enfspatch is a drop-in replacement for native fs module, you just need to include it instead of the native module.

Use this

    var enfs = require("enfspatch");

instead of

    var fs = require("fs"); //You don't need to do this anymore

and all the methods from native fs module are available

Errors

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.

Credit

This module is based on graceful-fs

License

Creative Commons Attribution 4.0 International License

Copyright (c) 2016 Joao Parreira joaofrparreira@gmail.com GitHub

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.