Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

version bump, adds abilty to use sync and other options #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

JoeCianflone
Copy link

I kept running into this issue with del() because it was returning a promise. I needed a way to use del.sync() instead of just del(). Also, del() has a couple of options (like force) that could be useful to other people so I forked and modified your code a bit. Basically there's now an options param and if you send it options.useSync it just deletes everything instead of going down the whole Promise path.

@JoeCianflone
Copy link
Author

Whoops, forgot to update the readme. Just took care of that too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant