importDirectory
external fun importDirectory(path: String, options: ImportDirectoryOptions? = definedExternally): Promise<IconSet>
Import all SVG files from a directory.
Subdirectories are included unless ImportDirectoryOptions.includeSubDirs is false. Each icon is cleaned up with cleanupSVG and added to a IconSet. The default icon name comes from the filename via cleanupIconKeyword; ImportDirectoryOptions.keyword can return a different name, or undefined to skip the icon. The callback may be asynchronous.
Import errors throw by default, despite the upstream comment claiming otherwise. Set ImportDirectoryOptions.ignoreImportErrors to true to ignore them, or to "warn" to log a warning.