
Product
Introducing Custom Tabs for Org Alerts
Create and share saved alert views with custom tabs on the org alerts page, making it easier for teams to return to consistent, named filter sets.
open-file-manager-dialog
Advanced tools
Cross-platform library for opening a file manager dialog window programmatically on MacOS, Windows, or Linux.
Cross-platform library for opening a file manager dialog window programmatically on MacOS, Windows, or Linux.
Please consider following this project's author, Jon Schlinkert, and consider starring the project to show your :heart: and support.
Install with npm:
$ npm install --save open-file-manager-dialog
import { openFileManagerDialog, parsePaths } from 'open-file-manager-dialog';
// or
import openFileManagerDialog from 'open-file-manager-dialog';
Signature:
export const openFileManagerDialog = async (
dirname?: string,
options?: { multiple?: boolean; filter?: string; }
): Promise<string[]>;
This library is powered by open-finder-dialog, open-linux-file-dialog, and open-windows-file-dialog. See their documentation for more details and to learn about available options.
// Open the dialog in the current working directory
const selectedPaths = await openFileManagerDialog();
console.log('Selected paths:', selectedPaths);
Opens the native file manager dialog for the current OS (Windows, macOS, or Linux) to select files or directories. Returns the paths of selected files as an array of strings.
dirname (optional)
The initial directory or file path where the dialog should open. Defaults to the current working directory.
const selectedPaths = await openFileManagerDialog('/some/folder');
options (optional)
multiple (boolean): Allow selection of multiple files (default: false).filter (string): Filter file types, for example "*.jpg".// Allow selecting multiple PDF files from a directory
const { files, canceled } = await openFileManagerDialog('/some/folder', {
multiple: true,
filter: ['pdf']
});
You might also be interested in:
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:
$ npm install && npm test
(This project's readme.md is generated by verb, please don't edit the readme directly. Any changes to the readme must be made in the .verb.md readme template.)
To generate the readme, run the following command:
$ npm install -g verbose/verb#dev verb-generate-readme && verb
Jon Schlinkert
Copyright © 2025, Jon Schlinkert. Released under the MIT License.
This file was generated by verb-generate-readme, v0.8.0, on May 25, 2025.
FAQs
Cross-platform library for opening a file manager dialog window programmatically on MacOS, Windows, or Linux.
We found that open-file-manager-dialog demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Create and share saved alert views with custom tabs on the org alerts page, making it easier for teams to return to consistent, named filter sets.

Product
Socket’s Rust and Cargo support is now generally available, providing dependency analysis and supply chain visibility for Rust projects.

Security News
Chrome 144 introduces the Temporal API, a modern approach to date and time handling designed to fix long-standing issues with JavaScript’s Date object.