fsxtra

0.0.4 • Public • Published

NodeFsXtra

Extends Node FS lib

Use

const fs = require('fsxtra');

fs base methods

  • Includes all fs lib functions.

  • All fs functions with an alternate 'Sync' method will return promises instead of requiring callbacks

Extra methods

.mktree(<filepath>)

  • Returns Promise

  • Accepts full filepath, creating as many of the directories in the filepath as needed.

.mktreeSync(<filepath>)

  • Synchronous version of .mktree()

TODO

Add rmtree & rmtreeSync methods - include 'force' option for removing files in dirs.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.4
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.4
    1
  • 0.0.3
    0
  • 0.0.2
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i fsxtra

Weekly Downloads

1

Version

0.0.4

License

ISC

Unpacked Size

4.52 kB

Total Files

6

Last publish

Collaborators

  • a-k-f