/efe

enhanced fs-extra

Primary LanguageJavaScriptMIT LicenseMIT

efe - Enhanced FS-Extra NPM version GitHub license

Dependency Status devDependency Status travis-ci appveyor

An enhanced version of fs-extra

note

All properties from fs-extra are shallow cloned when this module is required for the first time, which means extending this module's exports will not affect the use of fs-extra from anywhere else.

install

npm install efe --save

api usage

var fs = require('efe');

// Ensures forward slashes are used on Windows
fs.enableForwardSlashes(); // or fs()
fs.disableForwardSlashes();
fs.resetNormalize();

// Removed `deprecated` warning when using `fs.exists(Sync)`
fs.exists(path, callback);
fs.existsSync(path);

// Attached methods from other modules to `efe`
fs.normalize(p);
fs.join([path1][, path2][, ...]);
fs.resolve([from ...], to);
fs.isAbsolute(path);
fs.relative(from, to);
fs.dirname(p);
fs.basename(p[, ext]);
fs.extname(p);
fs.sep
fs.delimiter
fs.parse(pathString);
fs.format(pathObject);
fs.Watcher(options);
fs.watch(paths, options);
fs.hasMagic(pattern, [options]);
fs.glob(pattern, [options], cb);
fs.globSync(pattern, [options]);
fs.Glob(pattern, [options], [cb]);
fs.writeFile(filename, data[, options], callback);
fs.writeFileSync(filename, data[, options]);
fs.Walker(root);

// Updated the `stats` objects returned by methods using `fs.Stats`
fs.stat(path, callback);
fs.statSync(path);
fs.lstat(path, callback);
fs.lstatSync(path);
fs.fstat(path, callback);
fs.fstatSync(path);

// Walk directory tree, firing `callback` on every item not a directory
fs.walk(path, callback);
fs.walkSync(path, callback);

// Check if the given path is of a specific type
fs.isFile(path, [callback])
fs.isFileSync(path)
fs.isDirectory(path, [callback])
fs.isDirectorySync(path)
fs.isBlockDevice(path, [callback])
fs.isBlockDeviceSync(path)
fs.isBlock(path, [callback])
fs.isBlockSync(path)
fs.isCharacterDevice(path, [callback])
fs.isCharacterDeviceSync(path)
fs.isCharacter(path, [callback])
fs.isCharacterSync(path)
fs.isSymbolicLink(path, [callback])
fs.isSymbolicLinkSync(path)
fs.isSymbolic(path, [callback])
fs.isSymbolicSync(path)
fs.isLink(path, [callback])
fs.isLinkSync(path)
fs.isFIFO(path, [callback])
fs.isFIFOSync(path)
fs.isSocket(path, [callback])
fs.isSocketSync(path)

// Return total size of the given path
fs.size(path, [options], [callback])
fs.sizeSync(path, [options])

dependencies

efe links

license

Copyright (c) 2015 Futago-za Ryuu.
Released under the MIT License