fs-extra APIs
- readFile
- existsSync
- writeFile
- pathExists
- readFileSync
- ensureDirSync
- ensureDir
- readdir
- remove
- readJson
- readdirSync
- stat
- writeFileSync
- readJSON
- copy
- readJsonSync
- writeJson
- readJSONSync
- ensureFile
- pathExistsSync
- copySync
- writeJSON
- createWriteStream
- statSync
- removeSync
- ensureFileSync
- mkdirSync
- emptyDir
- move
- unlink
- outputFile
- copyFileSync
- outputFileSync
- mkdirp
- ReadStream
- renameSync
- createFileSync
- lstatSync
- writeJSONSync
- copyFile
- open
- mkdirpSync
- close
- lstat
- outputJson
- fstat
- Stats
- rename
- read
- mkdir
- readlink
- emptydir
- createReadStream
- mkdtemp
- chmod
- FSWatcher
- Dirent
- appendFileSync
- truncateSync
- rmSync
- WriteOptions
- writeJsonSync
- rm
- unlinkSync
- SymlinkType
- mkdirs
- outputJsonSync
- emptyDirSync
- outputJSON
Other Related APIs
fs-extra#rm TypeScript Examples
The following examples show how to use
fs-extra#rm.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: dev.ts From gdmod with MIT License | 6 votes |
async execute() {
console.log(chalk`{bold {cyan Launching production build}}`);
const spinner: ora.Ora = ora(chalk.blueBright`Clean "dist"`).start();
await emptyDir(`./dist`);
spinner.succeed().start(chalk.magenta`Building bundle`);
await buildBundle(`./dist/bundle.js`);
spinner.succeed().start(chalk.magenta`Building mod file`);
await buildMod();
spinner.succeed().start(chalk.blueBright`Clean up temporary files`);
await rm(`./dist/bundle.js`);
spinner.succeed();
console.info(
chalk`{green {bold ✅ Success! You can now release the file {grey "{italic ./dist/mod.zip}"} and load it via a GDMod loader.}}`
);
}