{"_id":"hadron-events","_rev":"104-2df7612718786b4c6358e601b0c12e8d","name":"hadron-events","dist-tags":{"latest":"0.0.3"},"versions":{"0.0.1":{"name":"hadron-events","version":"0.0.1","keywords":["mongodb-js"],"author":{"name":"Durran Jordan","email":"durran@gmail.com"},"license":"Apache-2.0","_id":"hadron-events@0.0.1","maintainers":[{"name":"durran","email":"durran@gmail.com"}],"homepage":"https://github.com/mongodb-js/hadron-events","bugs":{"url":"https://github.com/mongodb-js/hadron-events/issues"},"dist":{"shasum":"2d24240f5a84a67dee2cff65f339ac3ea38e62f7","tarball":"https://registry.npmjs.org/hadron-events/-/hadron-events-0.0.1.tgz","integrity":"sha512-0Aq3bPY2aLeykB28u1qz7TxMx+vTYo5ejAYcLxLrCILyVhOW012qAqzthNoVW5kn4WhOmaLbu15yV7cxe8YHkQ==","signatures":[{"sig":"MEQCIGzxF2SgbMUDsVrxO/Egy07BhF4Txogoza/0lFExpxItAiB9gBOHLxEksGJzIFImxl0Z9O+DcorlkpjUvTH87Bge/A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","_shasum":"2d24240f5a84a67dee2cff65f339ac3ea38e62f7","gitHead":"af8a9f94ed433a74541a0351aaa63deb19484dd3","scripts":{"ci":"npm run check && npm test","fmt":"mongodb-js-fmt ./*.js ./test/*.js","test":"mocha --recursive","check":"mongodb-js-precommit"},"_npmUser":{"name":"durran","email":"durran@gmail.com"},"precommit":["check"],"repository":{"url":"git+https://github.com/mongodb-js/hadron-events.git","type":"git"},"_npmVersion":"3.5.0","description":"Hadron Events","directories":{},"_nodeVersion":"4.2.2","devDependencies":{"chai":"^3.4.1","mocha":"^2.3.4","pre-commit":"^1.1.2","mongodb-js-fmt":"^0.0.3","mongodb-js-precommit":"^0.2.8","eslint-config-mongodb-js":"^1.0.6"},"_npmOperationalInternal":{"tmp":"tmp/hadron-events-0.0.1.tgz_1462385895581_0.3779095772188157","host":"packages-16-east.internal.npmjs.com"}},"0.0.2":{"name":"hadron-events","version":"0.0.2","keywords":["mongodb-js"],"author":{"name":"Durran Jordan","email":"durran@gmail.com"},"license":"Apache-2.0","_id":"hadron-events@0.0.2","maintainers":[{"name":"durran","email":"durran@gmail.com"}],"homepage":"https://github.com/mongodb-js/hadron-events","bugs":{"url":"https://github.com/mongodb-js/hadron-events/issues"},"dist":{"shasum":"cf9d1b3a82ca87fa358a66e021d45125c8739484","tarball":"https://registry.npmjs.org/hadron-events/-/hadron-events-0.0.2.tgz","integrity":"sha512-TDcfOxIXtapAMAxZs5o62TMDB6kbbG755RRNinNsr18zZVlI7UlJ7nb1n5oJn2hc81MiAJsUiLvteldA9iE/NA==","signatures":[{"sig":"MEQCICsSdPiSo8itpszWb9Fku4oRmrzoXJzEyHiMmk5Q4j7BAiBpqClC89hZji0+51sn3pThZ9KRd6ZqZRiVJa0IW9mZvw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","_shasum":"cf9d1b3a82ca87fa358a66e021d45125c8739484","gitHead":"3ee1ac0debba60f9312841a2bd540d409c014456","scripts":{"ci":"npm run check && npm test","fmt":"mongodb-js-fmt ./*.js ./test/*.js","test":"mocha --recursive","check":"mongodb-js-precommit"},"_npmUser":{"name":"durran","email":"durran@gmail.com"},"precommit":["check"],"repository":{"url":"git+https://github.com/mongodb-js/hadron-events.git","type":"git"},"_npmVersion":"3.5.0","description":"Hadron Events","directories":{},"_nodeVersion":"4.2.2","devDependencies":{"chai":"^3.4.1","mocha":"^2.3.4","pre-commit":"^1.1.2","mongodb-js-fmt":"^0.0.3","mongodb-js-precommit":"^0.2.8","eslint-config-mongodb-js":"^1.0.6"},"_npmOperationalInternal":{"tmp":"tmp/hadron-events-0.0.2.tgz_1462386713223_0.616974082775414","host":"packages-16-east.internal.npmjs.com"}},"0.0.3":{"name":"hadron-events","version":"0.0.3","keywords":["mongodb-js"],"author":{"name":"Durran Jordan","email":"durran@gmail.com"},"license":"Apache-2.0","_id":"hadron-events@0.0.3","maintainers":[{"name":"durran","email":"durran@gmail.com"}],"homepage":"https://github.com/mongodb-js/hadron-events","bugs":{"url":"https://github.com/mongodb-js/hadron-events/issues"},"dist":{"shasum":"aef77ce363c82e80400d9ef266c5e3f11aa2ea5a","tarball":"https://registry.npmjs.org/hadron-events/-/hadron-events-0.0.3.tgz","integrity":"sha512-SlOcMqX/T/6eh+NfqDCDROK9KOI/8MlODKyoEHpdMe0O0g1Kg+Rtb9gJsuDfxsFJ4jN5jdzVHXaOwgIFdRJ6uA==","signatures":[{"sig":"MEUCIQDty2P7jSdF8J9U26HVQWX15ni/Hu7Z1aRR3ud2qSF9kwIgVZ/iIcWogkysYtobBhvUmgBiBnMyNnRk3Q9fyORh0/4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","_shasum":"aef77ce363c82e80400d9ef266c5e3f11aa2ea5a","gitHead":"30e62a3765fbd26bcaac2c96bb51489d1ce36e90","scripts":{"ci":"npm run check && npm test","fmt":"mongodb-js-fmt ./*.js ./test/*.js","test":"mocha --recursive","check":"mongodb-js-precommit"},"_npmUser":{"name":"durran","email":"durran@gmail.com"},"precommit":["check"],"repository":{"url":"git+https://github.com/mongodb-js/hadron-events.git","type":"git"},"_npmVersion":"3.5.0","description":"Hadron Events","directories":{},"_nodeVersion":"4.2.2","devDependencies":{"chai":"^3.4.1","mocha":"^2.3.4","pre-commit":"^1.1.2","mongodb-js-fmt":"^0.0.3","mongodb-js-precommit":"^0.2.8","eslint-config-mongodb-js":"^1.0.6"},"_npmOperationalInternal":{"tmp":"tmp/hadron-events-0.0.3.tgz_1462400052668_0.5821804441511631","host":"packages-12-west.internal.npmjs.com"}}},"time":{"created":"2016-05-04T18:18:16.931Z","modified":"2026-07-08T11:58:42.189Z","0.0.1":"2016-05-04T18:18:16.931Z","0.0.2":"2016-05-04T18:31:54.516Z","0.0.3":"2016-05-04T22:14:15.165Z"},"bugs":{"url":"https://github.com/mongodb-js/hadron-events/issues"},"author":{"name":"Durran Jordan","email":"durran@gmail.com"},"license":"Apache-2.0","homepage":"https://github.com/mongodb-js/hadron-events","keywords":["mongodb-js"],"repository":{"url":"git+https://github.com/mongodb-js/hadron-events.git","type":"git"},"description":"Hadron Events","maintainers":[{"email":"durran@gmail.com","name":"durran"}],"readme":"# hadron-events [![][travis_img]][travis_url] [![][npm_img]][npm_url]\n\nHadron Events\n-------------\n\nEvent constants used by hadron applications.\n\n## Usage\n\nApplication Events\n------------------\n\n```javascript\nconst AppEvent = require('hadron-events').AppEvent;\nconst ipc = require('hadron-ipc');\n\nipc.broadcast(AppEvent.CHECKING_FOR_UPDATE);\n\nipc.respondTo(AppEvent.CHECKING_FOR_UPDATE, checkForUpdate);\n```\n\nWindow Events\n-------------\n\n```javascript\nconst WindowEvent = require('hadron-events').WindowEvent;\nconst ipc = require('hadron-ipc');\n\nipc.on(WindowEvent.SHOW_ABOUT_DIALOG, showAboutDialog);\n```\n\n## Events\n\n- `AppEvent.CHECKING_FOR_UPDATE`: Application is currently checking if update is available.\n- `AppEvent.CHECK_FOR_UPDATE`: Tell the application to check for an update.\n- `AppEvent.UPDATE_NOT_AVAILABLE`: No update available for application.\n- `AppEvent.UPDATE_AVAILABLE`: Update available for application.\n- `AppEvent.UPDATE_DOWNLOADED`: Update completed downloading new version.\n- `AppEvent.INSTALL_UPDATE`: Install the new update.\n- `AppEvent.ENABLE_AUTO_UPDATE`: Enable application auto updates.\n- `AppEvent.DISABLE_AUTO_UPDATE`: Disable application auto updates.\n- `AppEvent.CLOSE_CONNECT_WINDOW`: Close application connect window.\n- `AppEvent.SHOW_CONNECT_WINDOW`: Show application connect window.\n- `AppEvent.SHOW_HELP_WINDOW`: Show application help window.\n- `AppEvent.SHOW_HELP_ENTRY`: Show application help entry.\n- `AppEvent.RENDERER_READY`: Application renderer process ready.\n- `AppEvent.LAUNCHED`: Application launched.\n- `AppEvent.QUIT`: Quit the application.\n- `WindowEvent.SHOW_ABOUT_DIALOG`: Show the about dialog.\n- `WindowEvent.SHOW_COMPASS_TOUR`: Show the Compass tour modal.\n- `WindowEvent.SHOW_COMPASS_OVERVIEW_SUBMENU`: Show the Compass overview sub-menu.\n- `WindowEvent.SHOW_NETWORK_OPTIN`: Show network optin.\n- `WindowEvent.SHOW_INTERCOM_PANEL`: Show intercom panel.\n- `WindowEvent.SHOW_SHARE_SUBMENU`: Show share sub-menu.\n- `WindowEvent.HIDE_SHARE_SUBMENU`: Hide share sub-menu.\n- `WindowEvent.SHARE_SCHEMA_JSON`: Share the schema as JSON.\n- `WindowEvent.RENDERER_READY`: The renderer process is ready.\n- `ElectronEvent.ALL_WINDOWS_CLOSED`: All windows are closed.\n- `ElectronEvent.READY`: Application is ready.\n- `ElectronEvent.BEFORE_QUIT`: Application is about to quit.\n- `ElectronEvent.WILL_QUIT`: Before the application starts the quit process.\n- `ElectronEvent.QUIT`: Application is quitting.\n\n## Installation\n\n```\nnpm install --save hadron-events\n```\n\n## License\n\nApache 2.0\n\n[travis_img]: https://img.shields.io/travis/mongodb-js/hadron-events.svg?style=flat-square\n[travis_url]: https://travis-ci.org/mongodb-js/hadron-events\n[npm_img]: https://img.shields.io/npm/v/hadron-events.svg?style=flat-square\n[npm_url]: https://www.npmjs.org/package/hadron-events\n","readmeFilename":"README.md"}