aria-fs
Installation
npm install --save aria-fs
Usage
-
globFiles
- return promise of string array of file paths matching one or more globs.globFiles(<globs>): Promise<string>
import { globFiles } from 'aria-fs'; (async function(){ const files = await globFiles('src/**/*.ts'); })();
-
clean
- remove/delete directory and files matching the dir path.clean(<dir>): Promise<void>
import { clean } from 'aria-fs'; (async function(){ await clean('dist'); })();
-
mkdirp
- recursively create directory.mkdirp(<dir>): void
import { mkdirp } from 'aria-fs'; mkdirp('dist');
-
copyFiles
- copy list of files matching the globs.copyFiles(<globs>, <destRootDir>): Promise<void>
import { copyFiles } from 'aria-fs'; (async function(){ await copyFiles('src/**/*.ts', 'temp'); })()