-
-
Notifications
You must be signed in to change notification settings - Fork 1
Description
Currently, it is not very well documented, but the options bag passed to the class constructor at initialization requires that a String be supplied for the location of the destination directory for the files/folders imported from upstream repos.
Firstly, rather than simply expecting a String, the type should be narrowed to perhaps only accept a valid filesystem path.
In the event that this field is omitted, such as in the case where the user may not necessarily be interested in the file(s) or may not have a particular preference where files are stored, a smart default for the canonical temporary directory should be used.
For Node.js environments with node:os
core module available, the value returned by the os.tmpdir()
method may be useful to consider. In the case of browser environments, the Window.sessionStorage()
Web API may be of interest.