Package Exports
- hexo-fs
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (hexo-fs) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
fs
File system module for Hexo.
Features
- Support for both Promise and callback interface.
- Use [graceful-fs] to avoid EMFILE error and various improvements.
Installation
$ npm install hexo-fs
Usage
var fs = require('hexo-fs');
API
appendFile(path, data, [options], [callback])
appendFileSync(path, data, [options])
chmod(path, mode, [callback])
chmodSync(path, mode)
chown(path, uid, gid, [callback])
chownSync(path, uid, gid)
copyDir(src, dest, options, [callback])
copyFile(src, dest, [callback])
createReadStream(path, [options])
createWriteStream(path, [options])
emptyDir(path, [options], [callback])
emptyDirSync(path, [options])
exists(path, [callback])
existsSync(path)
listDir(path, [options], [callback])
listDirSync(path, [options])
mkdir(path, [mode], [callback])
mkdirSync(path, [mode])
mkdirs(path, [callback])
mkdirsSync(path)
readdir(path, [callback])
readdirSync(path)
readFile(path, [options], [callback])
readFileSync(path, [options])
rmdir(path, [callback])
rmdirSync(path)
stat(path, [callback])
statSync(path)
unlink(path, [callback])
unlinkSync(path)
writeFile(path, data, [options], [callback])
writeFileSync(path, data, [options])
License
MIT