1.0.1 • Published 7 years ago

enfspatch v1.0.1

Weekly downloads
11
License
CC-BY-4.0
Repository
github
Last release
7 years ago

Build Status Build status Codacy Badge Donate

NPM

enfspatch

Additional methods and patches for node fs module

enfs stands for Easy Node 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.