2.0.0 • Published 7 years ago

rmfr v2.0.0

Weekly downloads
22,456
License
ISC
Repository
github
Last release
7 years ago

rmfr

npm version Build Status Build status Coverage Status

Node.js implementation of rm -fr – recursive removal of files and directories

const rmfr = require('rmfr');

(async () => await rmfr('path/to/target'))();

Installation

Use npm.

npm install rmfr

API

const rmfr = require('rmfr');

rmfr(path , options)

path: string (a file/directory path)
options: Object
Return: Promise

When it finish removing a target, it will be fulfilled with no arguments.

When it fails to remove a target, it will be rejected with an error as its first argument.

Options

All rimraf options except for disableGlob are available, with some differences:

  • glob option defaults to false.
  • unlink, chmod, rmdir and readdir options default to the corresponding graceful-fs methods.
const rmfr = require('rmfr');

rmfr('inde*.js'); // doesn't remove `./index.js`
rmfr('inde*.js', {glob: true}); // removes `./index.js`

License

ISC License © 2017 - 2018 Shinnosuke Watanabe

@seasketch-sls-geoprocessing/packaging@uiux/cli@infinitebrahmanuniverse/nolb-rmliusc-creator@everything-registry/sub-chunk-2672swannyvodka-cli@bluebase/cli-web@blueeast/bluerain-cli-engine-web@blueeast/bluerain-cli-webdoflokazma-clisrc-dependenciessteelosqq-clisqq2-clistep-processortungsten@ankylos/cli@avaco/utility-service@brewskey/spark-server@delta-framework/compileryeetgifyg-template-cliytarcyamakeypweb-cliyyiswebpack-template-cliwebpack-canary@hadihallak/mytestone@iconduit/iconduit@ftp-simple-deploy/lib@fusuma/utils@gochewy/lib@kyohxt/ffcreator@krakenjs/webpack-config-grumbler@krakenjs/grabthar@kicad-library-manager/cli@motorjs/plugin-copy@mihanizm56/boilerplate-config-packager@notiv/gulp-builder@plasmicapp/loader@springload/metatemplate@spacex2020/ffcreatormtempynapi-headersmywhatsapp-api-node-baileys-mdmywhatsapp-api-node-whatsapp-web.jspayara-scriptscgsffcreatorreact-native-get-google-fontrs-filerappopo-sobscutageproject-next-clireact-install-renderserverless-nodejs-individuallynextjs-server-modulesnorinp-cli-happyphash-gifprimitiveradius-utilssimple-project-generatorshipit-deploygrabthargrumbler-scriptsgrumbler-ts-scriptsiconduitlight-ffmpeg-trans@wildberries/boilerplate-config-packager@thepechinator/shipit-deploy@turnon/dib@yaron24/ffmpeg-concat@yoolabs/tmp@superbiche/shipit-deployarangodb-instance-managerchewy-libcode-pipeline-triggerconcordcreatorlitecore.io-view-generatordaria-cliawesome-java-lintawesome-lintffvcreatorffvideoffcreatorffcreator-autoffcreator-ccffcreator-chuanbotaffcreator-guijiffcreator-mdffcreatorliteffcreatorlite-asarffcreatorlite-rootaiffcreatorlite-zainffcreatorlite_mixffmpeg-generate-video-preview
2.0.0

7 years ago

2.0.0-4

7 years ago

2.0.0-3

7 years ago

2.0.0-1

7 years ago

2.0.0-2

7 years ago

2.0.0-0

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

9 years ago

1.0.0

9 years ago

0.0.1

9 years ago

0.0.0

9 years ago