
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
win-dialogs
Advanced tools
Node.js wrapper for native Windows file and folder dialogs using PowerShell.
File dialogs for Node.js.
Uses PowerShell and .NET WinForms to open native Windows file/folder dialogs with support for Folder Picking and File Picking and customizable options.
npm install win-dialogs
Requires Windows with PowerShell and .NET Framework installed (available on all Windows 7+ systems).
Native Windows File & Folder dialogs
Supports:
Customizable dialog parameters (title, filters, default name, etc)
Compatible with both CommonJS and ES Modules
import { OpenFolderDialog } from 'win-dialogs';
const folder = await OpenFolderDialog('Choose a folder', 'SelectHere');
console.log('Selected folder:', folder);
const { OpenFileDialog } = require('win-dialogs');
OpenFileDialog('Pick a file', 'All Files (*.*)|*.*')
.then(console.log)
.catch(console.error);
FolderBrowserDialog(description?, rootFolder?, etcParams?)Opens a classic folder picker dialog.
| Param | Type | Default | Description |
|---|---|---|---|
description | string | "Select Folder" | Text to display inside the dialog |
rootFolder | string | "Desktop" | Special folder name or full path |
etcParams | object | {} | Additional WinForms dialog options |
OpenFileDialog(title?, filter?, multiSelect?, initialDir?, etcParams?)Opens a file dialog.
| Param | Type | Default | |
|---|---|---|---|
title | string | "Select File" | |
filter | string | "All Files (*.*) | *.*" |
multiSelect | boolean | false | |
initialDir | string | "Desktop" | |
etcParams | DialogOptions | {} |
OpenFolderDialog(title?, initialName?, initialDir?, multiSelect?, etcParams?)Opens a folder dialog.
| Param | Type | Default |
|---|---|---|
title | string | "Select Folder" |
initialName | string | "Select a Folder" |
initialDir | string | "Desktop" |
multiSelect | boolean | false |
etcParams | DialogOptions | {} |
etcParams Options| Option | Type | Description |
|---|---|---|
ValidateNames | boolean | Allow/disallow invalid filenames |
CheckFileExists | boolean | Require existing files |
CheckPathExists | boolean | Require existing paths |
RestoreDirectory | boolean | Resets directory after use |
DefaultExt | string | Default file extension (e.g. "txt") |
AddExtension | boolean | Automatically append extension |
SupportMultiDottedExtensions | boolean | Support .tar.gz, .config.js, etc. |
const selected = await OpenFolderDialog('Choose Folder', 'Select a folder now', 'Desktop', false, {
CheckPathExists: true,
ValidateNames: false,
});
console.log('You picked:', selected);
const selected = await FolderBrowserDialog('Select Folder', 'C:\\', {});
console.log('You picked:', selected);
const selected = await OpenFileDialog('Select Folder', 'Office Files|*.doc;*.xls;*.ppt' 'C:\\', {});
console.log('You picked:', selected);
import { OpenFolderDialog, DialogOptions } from 'win-dialogs';
const options: DialogOptions = {
CheckPathExists: true
};
const folder = await OpenFolderDialog('Choose', 'Choose a folder', 'Desktop', false, options);
FAQs
Node.js wrapper for native Windows file and folder dialogs using PowerShell.
We found that win-dialogs 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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.