
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
File and Folder dialog for NWJS and Node Webkit
Use Node mode
npm install nw-dialog -S
var dialog = require('nw-dialog')
dialog.setContext(document) // work in client
dialog.openFileDialog( ... )
Use Client mode
<script src="nw-dialog/index.js"></script>
nw.Dialog.openFileDialog( ... )
// or
window.dialog.openFileDialog( ... )
Simple
dialog.openFileDialog(function(result) {
alert(result)
})
With file type
dialog.openFileDialog('.zip,.rar', function(result) {
alert(result)
})
or
dialog.openFileDialog(['.zip', '.rar'], function(result) {
alert(result)
})
Multiple select
dialog.openFileDialog(true, function(result) {
alert(result)
})
File type + Multiple select
dialog.openFileDialog('.zip,.rar', true, function(result) {
alert(result)
})
File type + Working directory
dialog.openFileDialog('.zip,.rar', '/Users/didanurwanda', function(result) {
alert(result)
})
File type + Multiple select + Working directory
dialog.openFileDialog('.zip,.rar', true, '/Users/didanurwanda', function(result) {
alert(result)
})
Simple
dialog.saveFileDialog(function(result) {
alert(result)
})
File name
dialog.saveFileDialog('name.txt', function(result) {
alert(result)
})
With extension
dialog.saveFileDialog('name', '.txt,.srt', function(result) {
alert(result)
})
or
dialog.saveFileDialog('name', ['.txt', '.srt'], function(result) {
alert(result)
})
Working directory
dialog.saveFileDialog('name', '.txt', '/Users/didanurwanda', function(result) {
alert(result)
})
Simple
dialog.folderBrowserDialog(function(result) {
alert(result)
})
Default Directory
dialog.folderBrowserDialog('/Users/didanurwanda', function(result) {
alert(result)
})
FAQs
Node Webkit Dialog
The npm package nw-dialog receives a total of 34 weekly downloads. As such, nw-dialog popularity was classified as not popular.
We found that nw-dialog demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.