Closed fisker closed 2 years ago
Yup. I want to support URL
anywhere I accept paths.
@fisker
// TypeError: Expected
cwd
to be of typestring
but received typeobject
I was just browsing in this repo and came accross this and wanted to comment. Not sure how you guys implemented this yet but why not do something like this everywhere a URL is accepted?
if (cwd instanceof URL){
cwd = cwd.toString()
}
eg. check if it is an URL
object and if so use it's .toString()
method to convert it into a string...
Currently, I have to