explorer-opener
📁 Open file explorer with Node.js

Basic Usage
import { openExplorer } from 'explorer-opener';
openExplorer('C:\\Windows\\System32')
.then(() => {
})
.catch((error) => {
});
⚠️ Rejected promise will be returned if provided path does not exist:
openExplorer('/test/folder').catch((error) => {
});
Default path values
Default values will be used if path
is not specified:
- Windows:
"="
- Linux:
"/"
- MacOS:
"/"
Supported platforms
- Windows (
"win32"
) - Linux (
"linux"
) - MacOS (
"darwin"
)
⚠️ Rejected promise will be returned if it's called from not supported platform:
openExplorer().catch((error) => {
});