New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

cocoadialog

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cocoadialog

Node.js wrapper for cocoaDialog

latest
Source
npmnpm
Version
1.0.5
Version published
Weekly downloads
2
-84.62%
Maintainers
1
Weekly downloads
 
Created
Source

cocoadialog

Node.js wrapper for cocoaDialog

Note: Issues with the actual cocoaDialog application should be filed in its issue queue.

Install

$ npm install --save cocoadialog

Basic Usage

const cocoaDialog = require('cocoadialog').setGlobalOption({
  stringOutput: true
});

cocoaDialog.msgBox()
  .setTitle('This is the title')
  .setIcon('caution')
  .setLabel('This is the label')
  .setButtons('Ok', 'Cancel', 'More')
  .open()
  .then(result => {
    if (result.button === 'Ok') {
      console.log('Ok button was clicked.');
    }
    else if (result.button === 'More') {
      console.log('More button was clicked.');
    }
  })
  .catch(result => {
    if (result.hasAborted()) {
      console.log('Cancel button was clicked.');
    }
    else {
      console.error(result.error);
    }
  });

Examples

  • MsgBox
  • ProgressBar

API

API Documentation

License

MIT © Mark Carver

Keywords

box

FAQs

Package last updated on 18 Apr 2017

Did you know?

Socket

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.

Install

Related posts