New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

nw-dialog

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nw-dialog - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

package.json
{
"name": "nw-dialog",
"version": "1.0.0",
"version": "1.0.1",
"description": "Node Webkit Dialog",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -5,5 +5,4 @@ # nw-dialog

## Installation
Use Node mode
Use Node Mode
```

@@ -15,7 +14,7 @@ var dialog = require('nw-dialog')

Use Client Mode
Use Client mode
```
<script src="nw-dialog/index.js"></script>
nw.Dialog.openFileDialog( ... )
nw.Dialog.openFileDialog( ... )
// or

@@ -30,20 +29,20 @@ window.Dialog.openFileDialog( ... )

```
nw.Dialog.openFileDialog(function(result) {
alert(result)
dialog.openFileDialog(function(result) {
alert(result)
})
```
With File Type
With file type
```
nw.Dialog.openFileDialog('.zip, .rar', function(result) {
alert(result)
dialog.openFileDialog('.zip, .rar', function(result) {
alert(result)
})
```
Multiple Select
Multiple select
```
nw.Dialog.openFileDialog('.zip, .rar', true, function(result) {
alert(result)
dialog.openFileDialog('.zip, .rar', true, function(result) {
alert(result)
})

@@ -56,20 +55,20 @@ ```

```
nw.Dialog.saveFileDialog(function(result) {
alert(result)
dialog.saveFileDialog(function(result) {
alert(result)
})
```
With File Name
With file name
```
nw.Dialog.saveFileDialog('name.txt', function(result) {
alert(result)
dialog.saveFileDialog('name.txt', function(result) {
alert(result)
})
```
File Name and Default Directory
File name and default directory
```
nw.Dialog.saveFileDialog('name.txt', '/Users/didanurwanda', function(result) {
alert(result)
dialog.saveFileDialog('name.txt', '/Users/didanurwanda', function(result) {
alert(result)
})

@@ -82,5 +81,5 @@ ```

```
nw.Dialog.folderBrowseDialog(function(result) {
alert(result)
dialog.folderBrowseDialog(function(result) {
alert(result)
})
```
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc