2.0.0 • Published 6 years ago

rmfr v2.0.0

Weekly downloads
22,456
License
ISC
Repository
github
Last release
6 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-2672@avaco/utility-service@delta-framework/compiler@blueeast/bluerain-cli-engine-web@blueeast/bluerain-cli-web@bluebase/cli-web@brewskey/spark-serverreact-native-get-google-fontreact-install-renderscutagevodka-cliwebpack-template-cliyamakeyeetgifwebpack-canaryyyisyg-template-cliypweb-cliytarcuser-events-segmentsimple-project-generatorswannysteelostep-processorsrc-dependenciessqq-clisqq2-clirs-fileshipit-deployserverless-nodejs-individually@gochewy/lib@iconduit/iconduitcore.io-view-generatordaria-cli@ankylos/cli@fusuma/utils@ftp-simple-deploy/lib@hadihallak/mytestone@kyohxt/ffcreator@kicad-library-manager/cli@motorjs/plugin-copy@notiv/gulp-builder@krakenjs/grabthar@krakenjs/webpack-config-grumblermywhatsapp-api-node-baileys-mdmywhatsapp-api-node-whatsapp-web.jsnapi-headersmtempyffpictureffvcreatorffvideoffmpeg-generate-video-previewffmpeg-concatffcreatorffcreator-ccffcreator-chuanbotaffcreator-guijiffcreator-mdffcreatorliteffcreatorlite_mixnextjs-server-modules@wildberries/boilerplate-config-packager@superbiche/shipit-deployfusumafstreestorefs-from-objectgrabtharawesome-lintgenerator-wilburnp-cli-happy@yaron24/ffmpeg-concat@yoolabs/tmp@turnon/dibgrumbler-scriptsgrumbler-ts-scripts@plasmicapp/loader@shoutem/cli@seveibar/kanellight-ffmpeg-trans@thepechinator/shipit-deploy@spacex2020/ffcreatorkanel@springload/metatemplatekazma-clinode-ffmpeg-concatnorigenerate-video-previewarangodb-instance-managerphash-gifpayara-scriptawesome-java-lintcode-pipeline-triggerchewy-libiconduitproject-next-cliconcord
2.0.0

6 years ago

2.0.0-4

6 years ago

2.0.0-3

6 years ago

2.0.0-1

6 years ago

2.0.0-2

6 years ago

2.0.0-0

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

8 years ago

1.0.0

8 years ago

0.0.1

8 years ago

0.0.0

8 years ago