JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 95
  • Score
    100M100P100Q7318F
  • License MIT

graceful-fs / fs-extra promise wrapper

Package Exports

  • @absolunet/fsp

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 (@absolunet/fsp) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@absolunet/fsp

npm npm dependencies npms Travis CI Code style

graceful-fs / fs-extra promise wrapper

Install

$ npm install @absolunet/fsp

Usage

const fsp = require('@absolunet/fsp');

fsp.chmodPattern('/path1/path2/**/*.js', 0o775).then(() => {
    console.log('Yeah!');
});

API mapper

fs is graceful-fs

fse is fs-extra

access

Maps fs.promises.access

appendFile

Maps fs.promises.appendFile

chmod

Maps fs.promises.chmod

chown

Maps fs.promises.chown

copy

Maps fse.copy

copyFile

Maps fs.promises.copyFile

emptyDir

Maps fse.emptyDir

ensureFile

Maps fse.ensureFile

ensureDir

Maps fse.ensureDir

Maps fse.ensureLink

Maps fse.ensureSymlink

lchmod

Maps fs.promises.lchmod

lchown

Maps fs.promises.lchown

Maps fs.promises.link

lstat

Maps fs.promises.lstat

mkdir

Maps fs.promises.mkdir

mkdirp

Maps fse.mkdirp

mkdirs

Maps fse.mkdirs

mkdtemp

Maps fs.promises.mkdtemp

move

Maps fse.move

open

Maps fs.promises.open

outputFile

Maps fse.outputFile

outputJson

Maps fse.outputJson

pathExists

Maps fse.pathExists

readdir

Maps fs.promises.readdir

readFile

Maps fs.promises.readFile

readJson

Maps fse.readJson

Maps fs.promises.readlink

realpath

Maps fs.promises.realpath

remove

Maps fse.remove

rename

Maps fs.promises.rename

rmdir

Maps fs.promises.rmdir

stat

Maps fs.promises.stat

Maps fs.promises.symlink

truncate

Maps fs.promises.truncate

Maps fs.promises.unlink

utimes

Maps fs.promises.utimes

writeFile

Maps fs.promises.writeFile

writeJson

Maps fse.writeJson

API custom

chmodPattern(pattern, mode, [options])

Applies fs.chmod for matching glob pattern file/dir.

Promise returns nothing.

pattern

Required Type: String

glob pattern.

mode

Required Type: Number

File mode.

options

Type: Object

glob options.

License

MIT © Absolunet