You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now, cpx can be used either synchronously, or asynchronously using callbacks. With the trend in the world of NodeJS to move to native Promises - what about providing a promise-based API?
Perhaps something like copyAsync? Or replacing the copy and introducing a breaking change?
The text was updated successfully, but these errors were encountered:
This would be a great addition, especially with async/await being the norm these days.
This probably wouldn't need a breaking change since you can just drop the last callback parameter in copy and it will treat it as if a Promise is expected.
Right now,
cpx
can be used either synchronously, or asynchronously using callbacks. With the trend in the world of NodeJS to move to native Promises - what about providing a promise-based API?Perhaps something like
copyAsync
? Or replacing thecopy
and introducing a breaking change?The text was updated successfully, but these errors were encountered: