{"_id":"eve","_rev":"20-8b43ff00fbfe76cccf24073cb3084ab0","name":"eve","dist-tags":{"latest":"0.5.4"},"versions":{"0.2.4":{"name":"eve","author":{"name":"Dmitry Baranovskiy","email":"dmitry@baranovskiy.com","url":"http://dmitry.baranovskiy.com"},"version":"0.2.4","main":"./eve.js","repository":{"type":"git","url":"git@github.com:DmitryBaranovskiy/eve.git"},"dependencies":{},"devDependencies":{},"_id":"eve@0.2.4","engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.0.1rc7","_nodeVersion":"v0.5.0-pre","_defaultsLoaded":true,"dist":{"shasum":"6324659497bccf9bb794203d7d8a35d3e74f8020","tarball":"https://registry.npmjs.org/eve/-/eve-0.2.4.tgz","integrity":"sha512-Dkmc6n1pDQjVgtU4uG8jPOSawe1RhI10cyx81VDw2EXmaFnU/I24ybN+bUpqcXpKfa0SXvN7Sh7zw+oncmHE7A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCRtFoGCoY/9QJG6aNfmUZnhmUaI8S6qDGcTwBkG4SYcgIgDFuOm44glWtLMx5Vp7w8vZMXknMAbJVVI+6rbzomINg="}]}},"0.3.5":{"name":"eve","author":{"name":"Dmitry Baranovskiy","email":"dmitry@baranovskiy.com","url":"http://dmitry.baranovskiy.com"},"description":"Simple custom events","version":"0.3.5","main":"./eve.js","repository":{"type":"git","url":"git@github.com:DmitryBaranovskiy/eve.git"},"_npmUser":{"name":"dmitrybaranovskiy","email":"dmitry@baranovskiy.com"},"_id":"eve@0.3.5","dependencies":{},"devDependencies":{},"optionalDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.1.16","_nodeVersion":"v0.6.15","_defaultsLoaded":true,"dist":{"shasum":"018321c98af44638a4750e94d43df1882163fcaf","tarball":"https://registry.npmjs.org/eve/-/eve-0.3.5.tgz","integrity":"sha512-VFq3QMKnwlx+9xo2Z4jJSFoGwEMX/f/Bze/VqG90SmMH3HAOzkRr51puOjYK0Eek+zQ/j/DUZFJc3b4rfAMhhA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBRhTez0vyOTQ59uPadqcG3/Hrxy9+dxMeuaYoOP0whVAiEA56+KKSQhIFdDkQmeKiVR8i8Wkxg1SGYSIIQnv+8oAwQ="}]},"maintainers":[{"name":"dmitrybaranovskiy","email":"dmitry@baranovskiy.com"}]},"0.4.1":{"name":"eve","author":{"name":"Dmitry Baranovskiy","email":"dmitry@baranovskiy.com","url":"http://dmitry.baranovskiy.com"},"description":"Simple custom events","version":"0.4.1","main":"./eve.js","repository":{"type":"git","url":"git@github.com:adobe-webplatform/eve.git"},"bugs":{"url":"https://github.com/adobe-webplatform/eve/issues"},"_id":"eve@0.4.1","dist":{"shasum":"4a65c458fb262da3137fad443cc00471525ecc1f","tarball":"https://registry.npmjs.org/eve/-/eve-0.4.1.tgz","integrity":"sha512-JYAjAXf+U+itBbeJXoKEU/8vuEydiCdhd/wBINKWpLHW4M9EbiPEyzmk90eo/YJmWbOU8Vum12mMZKdvn7BKNg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAvnBlOc9TzogJgk4eIbrCMbtKV+E8v2qX4aBCJIXrPsAiEAh8U+3a/fq2efQw+fJrBYxiyuaiqlGitUu1hcflT8iV0="}]},"_from":".","_npmVersion":"1.3.5","_npmUser":{"name":"dmitrybaranovskiy","email":"dmitry@baranovskiy.com"},"maintainers":[{"name":"dmitrybaranovskiy","email":"dmitry@baranovskiy.com"}]},"0.4.2":{"name":"eve","author":{"name":"Dmitry Baranovskiy","email":"dmitry@baranovskiy.com","url":"http://dmitry.baranovskiy.com"},"description":"Simple custom events","version":"0.4.2","main":"./eve.js","repository":{"type":"git","url":"git@github.com:adobe-webplatform/eve.git"},"bugs":{"url":"https://github.com/adobe-webplatform/eve/issues"},"_id":"eve@0.4.2","dist":{"shasum":"7eea0afc0e4efb7c9365615315a3576833ead2ae","tarball":"https://registry.npmjs.org/eve/-/eve-0.4.2.tgz","integrity":"sha512-FmXff27UfzE6Q3yLub7d6qNXznXuPIRk2N3ux68Cb2hPzHRPlU0q4vPTz6YvRlgiI58WdR/08+7jN4orGOhmsw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCdon98g4zEo2Nf/j9ISl91fOctHf3k1dvT6NVv+KiypQIgcm+cX3/jNB/56Lwf6Ta+dd5jbysZBsDf+fDZQ+YMow8="}]},"_from":".","_npmVersion":"1.3.5","_npmUser":{"name":"dmitrybaranovskiy","email":"dmitry@baranovskiy.com"},"maintainers":[{"name":"dmitrybaranovskiy","email":"dmitry@baranovskiy.com"}]},"0.5.0":{"name":"eve","author":{"name":"Dmitry Baranovskiy","email":"dmitry@baranovskiy.com","url":"http://dmitry.baranovskiy.com"},"description":"Simple custom events","version":"0.5.0","main":"./eve.js","repository":{"type":"git","url":"git@github.com:adobe-webplatform/eve.git"},"gitHead":"e5743970ae26ec1e6ce099ca5e6492c727ed7147","bugs":{"url":"https://github.com/adobe-webplatform/eve/issues"},"homepage":"https://github.com/adobe-webplatform/eve","_id":"eve@0.5.0","scripts":{},"_shasum":"750480e0cf4f8fd5b53c4d8405f0040532e0eebe","_from":".","_npmVersion":"1.4.14","_npmUser":{"name":"dmitrybaranovskiy","email":"dmitry@baranovskiy.com"},"maintainers":[{"name":"dmitrybaranovskiy","email":"dmitry@baranovskiy.com"}],"dist":{"shasum":"750480e0cf4f8fd5b53c4d8405f0040532e0eebe","tarball":"https://registry.npmjs.org/eve/-/eve-0.5.0.tgz","integrity":"sha512-/3+siAnsKWmu2Gx81dbmqkM+Hhs+z4dkT8/C0Y6mFATJQRpw8f8weeUFs2AMGY++0pwPZuRScGwreeNWpYVMfg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDxsVH0/L8de/qkqhllmaCz4EDeE9S/poupS55hytnYjAiEAqfEcOaGF8DClx/TfJXxy7/MJEvIO12KBTYTk7WeXydc="}]}},"0.5.1":{"name":"eve","author":{"name":"Dmitry Baranovskiy","email":"dmitry@baranovskiy.com","url":"http://dmitry.baranovskiy.com"},"description":"Simple custom events","version":"0.5.1","main":"./eve.js","repository":{"type":"git","url":"git+ssh://git@github.com/adobe-webplatform/eve.git"},"gitHead":"236632512cc4fe239f994374f2c711a8709c71fb","bugs":{"url":"https://github.com/adobe-webplatform/eve/issues"},"homepage":"https://github.com/adobe-webplatform/eve#readme","_id":"eve@0.5.1","scripts":{},"_shasum":"5a78ebeb9b28628405f59fc1fb630b4db6933d3e","_from":".","_npmVersion":"2.15.5","_nodeVersion":"4.4.5","_npmUser":{"name":"dmitrybaranovskiy","email":"dmitry@baranovskiy.com"},"dist":{"shasum":"5a78ebeb9b28628405f59fc1fb630b4db6933d3e","tarball":"https://registry.npmjs.org/eve/-/eve-0.5.1.tgz","integrity":"sha512-sG4cciHGl9sxk4Qj4GIv7wep6MhltkpSbQ150NBf8sqWZSR20ayYYVw/4RI2d9FcEEibyaLfjVi4X/P+ou56ww==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICV2px4mnmjWT+tcpyhW9hV7IM7QSe5SEqBkRGnFGHzAAiBPjzzlW/oxxGvB6VcmxJ4vgICtxZEnlq02Tt2Yn3T5mg=="}]},"maintainers":[{"name":"dmitrybaranovskiy","email":"dmitry@baranovskiy.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/eve-0.5.1.tgz_1484699348627_0.00738700432702899"}},"0.5.2":{"name":"eve","author":{"name":"Dmitry Baranovskiy","email":"dmitry@baranovskiy.com","url":"http://dmitry.baranovskiy.com"},"description":"Simple custom events","version":"0.5.2","main":"./eve.js","repository":{"type":"git","url":"git+ssh://git@github.com/adobe-webplatform/eve.git"},"gitHead":"54ae09d450618c4825d1d726d47ff581bdfb5b1f","bugs":{"url":"https://github.com/adobe-webplatform/eve/issues"},"homepage":"https://github.com/adobe-webplatform/eve#readme","_id":"eve@0.5.2","scripts":{},"_shasum":"90c5572cc188a85b2c84eaca4c1db9c50acea907","_from":".","_npmVersion":"2.15.5","_nodeVersion":"4.4.5","_npmUser":{"name":"dmitrybaranovskiy","email":"dmitry@baranovskiy.com"},"dist":{"shasum":"90c5572cc188a85b2c84eaca4c1db9c50acea907","tarball":"https://registry.npmjs.org/eve/-/eve-0.5.2.tgz","integrity":"sha512-ziL458KpyQZmJ/fveDiKScKNp2hnwWJz63aL64LgkDVnad+n4t5hlBvdBzri2k4zeQXqC45+aqnybe5th+8+lQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICnYW35js7PreS2E1DDO8gHaS5XDWrbdJCcpBuze2KzfAiBOMIeFAIfYfJEe8q6rv47p6MuEN3UEhKD2MZ33PHbaJg=="}]},"maintainers":[{"name":"dmitrybaranovskiy","email":"dmitry@baranovskiy.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/eve-0.5.2.tgz_1487032474540_0.7164218814577907"}},"0.5.3":{"name":"eve","author":{"name":"Dmitry Baranovskiy","email":"dmitry@baranovskiy.com","url":"http://dmitry.baranovskiy.com"},"description":"Simple custom events","license":"Apache-2.0","version":"0.5.3","main":"./eve.js","devDependencies":{"mocha":"*","expect.js":"*","eslint":"*","dr.js":"~0.1.0"},"scripts":{"test":"./node_modules/eslint/bin/eslint.js eve.js","build":"node node_modules/dr.js/dr dr.json"},"repository":{"type":"git","url":"git+ssh://git@github.com/adobe-webplatform/eve.git"},"eslintConfig":{"globals":{"window":true,"console":true},"rules":{"block-scoped-var":0,"comma-dangle":0,"no-extra-parens":1,"no-shadow":0,"consistent-return":0,"eqeqeq":0,"no-new-wrappers":0,"no-sequences":1,"radix":2,"new-parens":0,"no-underscore-dangle":0,"no-path-concat":0,"strict":0,"camelcase":0,"no-extend-native":0,"no-loop-func":0,"new-cap":0,"no-unused-expressions":0,"no-mixed-requires":0,"quotes":[1,"double","avoid-escape"]}},"gitHead":"d7008f901868beb1a2e1b1d7bca438e152b7bbd6","bugs":{"url":"https://github.com/adobe-webplatform/eve/issues"},"homepage":"https://github.com/adobe-webplatform/eve#readme","_id":"eve@0.5.3","_shasum":"6c2f6588f7d0b392044d245ba5af9d7cfe237f42","_from":".","_npmVersion":"2.15.5","_nodeVersion":"4.4.5","_npmUser":{"name":"dmitrybaranovskiy","email":"dmitry@baranovskiy.com"},"dist":{"shasum":"6c2f6588f7d0b392044d245ba5af9d7cfe237f42","tarball":"https://registry.npmjs.org/eve/-/eve-0.5.3.tgz","integrity":"sha512-6Lh9vW3Tt1XZLxDivMBeD+iS9H07fQP//9+QUXWchZ31XiNJGqEQYyHMGDPYHD5m9QLZYP7RpiAgNGWS99/jRg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFq/SA/9XIhmOGBMOMp8o/whOLKlruV1B51mzkd0oH9fAiEA3fJCGvmRQ9WEMTicX+jZ+G2IKs+MbvyZc9Szy1/NSGQ="}]},"maintainers":[{"name":"dmitrybaranovskiy","email":"dmitry@baranovskiy.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/eve-0.5.3.tgz_1487037065697_0.9594667991623282"}},"0.5.4":{"name":"eve","author":{"name":"Dmitry Baranovskiy","email":"dmitry@baranovskiy.com","url":"http://dmitry.baranovskiy.com"},"description":"Simple custom events","license":"Apache-2.0","version":"0.5.4","main":"./eve.js","devDependencies":{"mocha":"*","expect.js":"*","eslint":"*","dr.js":"~0.1.0"},"scripts":{"test":"eslint eve.js","build":"node node_modules/dr.js/dr dr.json"},"repository":{"type":"git","url":"git+ssh://git@github.com/adobe-webplatform/eve.git"},"eslintConfig":{"globals":{"window":true,"console":true},"rules":{"block-scoped-var":0,"comma-dangle":0,"no-extra-parens":1,"no-shadow":0,"consistent-return":0,"eqeqeq":0,"no-new-wrappers":0,"no-sequences":1,"radix":2,"new-parens":0,"no-underscore-dangle":0,"no-path-concat":0,"strict":0,"camelcase":0,"no-extend-native":0,"no-loop-func":0,"new-cap":0,"no-unused-expressions":0,"no-mixed-requires":0,"indent":["error",4,{"SwitchCase":1,"VariableDeclarator":1}],"no-multi-spaces":[0,{"exceptions":{"VariableDeclarator":true}}],"no-trailing-spaces":[2,{"skipBlankLines":false}],"no-unused-vars":[2,{"vars":"all","args":"none"}],"space-before-function-paren":[2,{"anonymous":"always","named":"never"}],"quotes":[1,"double","avoid-escape"]}},"gitHead":"30c41dfb9de9679ea4fba10f192cc08cf7142b02","bugs":{"url":"https://github.com/adobe-webplatform/eve/issues"},"homepage":"https://github.com/adobe-webplatform/eve#readme","_id":"eve@0.5.4","_shasum":"67d080b9725291d7e389e34c26860dd97f1debaa","_from":".","_npmVersion":"2.15.5","_nodeVersion":"4.4.5","_npmUser":{"name":"dmitrybaranovskiy","email":"dmitry@baranovskiy.com"},"dist":{"shasum":"67d080b9725291d7e389e34c26860dd97f1debaa","tarball":"https://registry.npmjs.org/eve/-/eve-0.5.4.tgz","integrity":"sha512-aqprQ9MAOh1t66PrHxDFmMXPlgNO6Uv1uqvxmwjprQV50jaQ2RqO7O1neY4PJwC+hMnkyMDphu2AQPOPZdjQog==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID2b+wa35/ORhbZvOnnFKNq9HCogfxZpzk1CIDJl+Q9tAiEAhe/MPdav7AzG3s3CtXP5nuPpYzLxONjJYYzq1Z1wIoQ="}]},"maintainers":[{"name":"dmitrybaranovskiy","email":"dmitry@baranovskiy.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/eve-0.5.4.tgz_1492515861035_0.19881510804407299"}}},"maintainers":[{"name":"dmitrybaranovskiy","email":"dmitry@baranovskiy.com"}],"time":{"modified":"2022-06-17T21:23:10.363Z","created":"2011-04-18T08:34:50.929Z","0.2.4":"2011-04-18T08:34:52.454Z","0.3.5":"2012-07-03T01:37:40.467Z","0.4.1":"2013-08-26T02:20:51.711Z","0.4.2":"2014-05-22T06:23:21.279Z","0.5.0":"2014-07-07T05:46:17.508Z","0.5.1":"2017-01-18T00:29:09.372Z","0.5.2":"2017-02-14T00:34:36.406Z","0.5.3":"2017-02-14T01:51:05.914Z","0.5.4":"2017-04-18T11:44:22.988Z"},"author":{"name":"Dmitry Baranovskiy","email":"dmitry@baranovskiy.com","url":"http://dmitry.baranovskiy.com"},"repository":{"type":"git","url":"git+ssh://git@github.com/adobe-webplatform/eve.git"},"description":"Simple custom events","users":{"damonoehlman":true},"readme":"# Eve\n\nTiny event helping JavaScript library.\n\n## eve(name, scope, varargs)\nFires event with given `name`, given scope and other parameters.\n\n### Parameters\n- _name_  **string**\n    name of the _event_, dot (`.`) or slash (`/`) separated\n- _scope_  **object**\n    context for the event handlers\n- _varargs_  **...**\n    the rest of arguments will be sent to event handlers\n\n**Returns:**  **object** array of returned values from the listeners. Array has two methods `.firstDefined()` and `.lastDefined()` to get first or last not `undefined` value.\n\n## eve.listeners(name)\nInternal method which gives you array of all event handlers that will be triggered by the given `name`.\n\n### Parameters\n- _name_  **string**\n    name of the event, dot (`.`) or slash (`/`) separated\n\n**Returns:**  **array** array of event handlers\n\n## eve.separator(separator)\nIf for some reasons you don’t like default separators (`.` or `/`) you can specify yours\nhere. Be aware that if you pass a string longer than one character it will be treated as\na list of characters.\n\n### Parameters\n- _separator_  **string**\n    new separator. Empty string resets to default: `.` or `/`.\n\n\n## eve.on(name, f, name, f)\nBinds given event handler with a given name. You can use wildcards “`*`” for the names:\n\n```js\neve.on(\"*.under.*\", f);\neve(\"mouse.under.floor\"); // triggers f\n```\nUse <a href=\"#eve\" class=\"dr-link\">eve</a> to trigger the listener.\n\n### Parameters\n- _name_  **string**\n    name of the event, dot (`.`) or slash (`/`) separated, with optional wildcards\n- _f_  **function**\n    event handler function\n- _name_  **array**\n    if you don’t want to use separators, you can use array of strings\n- _f_  **function**\n    event handler function\n\n**Returns:**  **function** returned function accepts a single numeric parameter that represents z-index of the handler. It is an optional feature and only used when you need to ensure that some subset of handlers will be invoked in a given order, despite of the order of assignment.\n\n### Example:\n```js\neve.on(\"mouse\", eatIt)(2);\neve.on(\"mouse\", scream);\neve.on(\"mouse\", catchIt)(1);\n```\nThis will ensure that `catchIt` function will be called before `eatIt`.\n\nIf you want to put your handler before non-indexed handlers, specify a negative value.\nNote: I assume most of the time you don’t need to worry about z-index, but it’s nice to have this feature “just in case”.\n\n\n## eve.f(event, varargs)\nReturns function that will fire given event with optional arguments.\nArguments that will be passed to the result function will be also\nconcated to the list of final arguments.\n\n```js\nel.onclick = eve.f(\"click\", 1, 2);\neve.on(\"click\", function (a, b, c) {\n    console.log(a, b, c); // 1, 2, [event object]\n});\n```\n### Parameters\n- _event_  **string**\n    event name\n- _varargs_  **…**\n    and any other arguments\n\n**Returns:**  **function** possible event handler function\n\n## eve.stop()\nIs used inside an event handler to stop the event, preventing any subsequent listeners from firing.\n\n\n## eve.nt([subname])\nCould be used inside event handler to figure out actual name of the event.\n\n### Parameters\n- _subname_  **string**\n    subname of the event\n\n**Returns:**  **string** name of the event, if `subname` is not specified\nor\n\n**Returns:**  **boolean** `true`, if current event’s name contains `subname`\n\n## eve.nts()\nCould be used inside event handler to figure out actual name of the event.\n\n**Returns:**  **array** names of the event\n\n## eve.off(name, f)\nRemoves given function from the list of event listeners assigned to given name.\nIf no arguments specified all the events will be cleared.\n\n### Parameters\n- _name_  **string**\n    name of the event, dot (`.`) or slash (`/`) separated, with optional wildcards\n- _f_  **function**\n    event handler function\n\n\n## eve.unbind()\nSee <a href=\"#eve.off\" class=\"dr-link\">eve.off</a>\n\n\n## eve.once(name, f)\nBinds given event handler with a given name to only run once then unbind itself.\n\n```js\neve.once(\"login\", f);\neve(\"login\"); // triggers f\neve(\"login\"); // no listeners\n```\nUse <a href=\"#eve\" class=\"dr-link\">eve</a> to trigger the listener.\n\n### Parameters\n- _name_  **string**\n    name of the event, dot (`.`) or slash (`/`) separated, with optional wildcards\n- _f_  **function**\n    event handler function\n\n**Returns:**  **function** same return function as <a href=\"#eve.on\" class=\"dr-link\">eve.on</a>\n\n## eve.version()\nCurrent version of the library.\n\n\n","bugs":{"url":"https://github.com/adobe-webplatform/eve/issues"},"readmeFilename":"README.md","homepage":"https://github.com/adobe-webplatform/eve#readme","license":"Apache-2.0"}