All Projects → shinnn → rmfr

shinnn / rmfr

Licence: ISC license
Node.js implementation of rm -fr – recursive removal of files and directories

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to rmfr

eliminate
Delete files and directories without all the bullshit.
Stars: ✭ 51 (+121.74%)
Mutual labels:  remove, rm, delete
wastebasket
A crossplatform go library for moving files to the trashbin
Stars: ✭ 30 (+30.43%)
Mutual labels:  remove, delete
woodpecker
woodpecker http client for Android
Stars: ✭ 17 (-26.09%)
Mutual labels:  promise, delete
Node Fs Extra
Node.js: extra methods for the fs object like copy(), remove(), mkdirs()
Stars: ✭ 8,142 (+35300%)
Mutual labels:  remove, delete
object.omit
Return a copy of an object without the given keys.
Stars: ✭ 79 (+243.48%)
Mutual labels:  remove, delete
remove-files-webpack-plugin
A plugin for webpack that removes files and folders before and after compilation.
Stars: ✭ 48 (+108.7%)
Mutual labels:  remove
indexeddb-orm
Indexed DB ORM
Stars: ✭ 53 (+130.43%)
Mutual labels:  promise
async
Synchronization and asynchronous computation package for Go
Stars: ✭ 104 (+352.17%)
Mutual labels:  promise
vue2-element
基于vue2 + vue-router2 + element-ui + vuex2 + fetch + webpack2 企业级后台管理系统最佳实践
Stars: ✭ 115 (+400%)
Mutual labels:  promise
PiedPiper
A small set of classes and functions to make easy use of Futures, Promises and async computation in general. All written in Swift for iOS 10+, WatchOS 3, tvOS and Mac OS X apps.
Stars: ✭ 44 (+91.3%)
Mutual labels:  promise
co demo
A step-by-step guide about how to avoid callback hell with ES6 Promises + generators (aka make your own "co")
Stars: ✭ 17 (-26.09%)
Mutual labels:  promise
mongoose-aggregate-paginate-v2
A cursor based custom aggregate pagination library for Mongoose with customizable labels.
Stars: ✭ 103 (+347.83%)
Mutual labels:  promise
mst-effect
💫 Designed to be used with MobX-State-Tree to create asynchronous actions using RxJS.
Stars: ✭ 19 (-17.39%)
Mutual labels:  promise
mern-stack-crud
MERN stack (MongoDB, Express, React and Node.js) create read update and delete (CRUD) web application example
Stars: ✭ 142 (+517.39%)
Mutual labels:  delete
rocket-pipes
Powerful pipes for TypeScript, that chain Promise and ADT for you 🚌 -> ⛰️ -> 🚠 -> 🏂 -> 🚀
Stars: ✭ 18 (-21.74%)
Mutual labels:  promise
PromisedFuture
A Swift based Future/Promises framework to help writing asynchronous code in an elegant way
Stars: ✭ 75 (+226.09%)
Mutual labels:  promise
do
Simplest way to manage asynchronicity
Stars: ✭ 33 (+43.48%)
Mutual labels:  promise
etsy-ts
Etsy API wrapper written in typescript
Stars: ✭ 18 (-21.74%)
Mutual labels:  promise
wtsqs
Simplified Node AWS SQS Worker Wrapper
Stars: ✭ 18 (-21.74%)
Mutual labels:  promise
nancy
How JavaScript Promise Works
Stars: ✭ 26 (+13.04%)
Mutual labels:  promise

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].