Skip to content

[feature request] support default value for destination in options bag #55

@DerekNonGeneric

Description

@DerekNonGeneric

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions