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

Update README.md to use deleteAsync #2806

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

bramp
Copy link

@bramp bramp commented May 31, 2024

For ~two years 'del' no longer exports a default method, and instead exports deleteAsync() and deleteSync(), the former replacing del()

See sindresorhus/del@106d7d8

For ~two years 'del' no longer exports a default method, and instead exports `deleteAsync()` and `deleteSync()`, the former replacing `del()`

See sindresorhus/del@106d7d8
@yocontra
Copy link
Member

This seems like a good opportunity to eliminate a dependency and use import fs from 'fs/promises' + rmdir since this example was written before fs/promises existed del was the cleanest to use

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.

2 participants