{"_id":"one-event","_rev":"20-cb32fcfdb271a31280b68bd319876546","name":"one-event","dist-tags":{"latest":"4.4.0"},"versions":{"0.5.0":{"name":"one-event","version":"0.5.0","keywords":[],"author":{"url":"twitter.com/bfred_it","name":"Federico Brigante","email":"bfred-it@users.noreply.github.com"},"license":"MIT","_id":"one-event@0.5.0","maintainers":[{"name":"bfred-it","email":"npm@bfred.it"}],"homepage":"https://github.com/bfred-it/one-event#readme","bugs":{"url":"https://github.com/bfred-it/one-event/issues"},"dist":{"shasum":"052f7dc95bcff2a889511ff0c6079bd492e167cc","tarball":"https://registry.npmjs.org/one-event/-/one-event-0.5.0.tgz","integrity":"sha512-bbT1S95iI5CZyCbx4fMWjlM/VsVrS2fgZGZjMh1QEkzkgrnqKNx8vAXDNp1682iVUJULlUw7JZzJocO4PEwaAg==","signatures":[{"sig":"MEUCIG8sT7HVKRApk+jbyif5P+Y61O8GD4VWuj5t1r5ySsWzAiEAioWX0hEYxuE/zyZy03tNsTm2ZnaiMzlkY5sx+Ee+T0s=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"dist/one-event.node.js","_from":".","files":["index.js","dist/one-event.node.js"],"_shasum":"052f7dc95bcff2a889511ff0c6079bd492e167cc","engines":{"node":">=0.10.0"},"gitHead":"e031f354605e51eaf3fad65c9adef4bbcb6fd7c7","scripts":{"es5":"babel index.js > dist/one-event.node.js","build":"npm run es5 && npm run export && npm run minify","export":"browserify index.js --standalone oneEvent > dist/one-event.js","minify":"uglifyjs dist/one-event.js > dist/one-event.min.js","prepublish":"npm run es5"},"_npmUser":{"name":"bfred-it","email":"npm@bfred.it"},"browserify":{"transform":["babelify"]},"repository":{"url":"git+https://github.com/bfred-it/one-event.git","type":"git"},"_npmVersion":"3.2.1","description":"Micro module to add an event listener to be executed only once","directories":{},"_nodeVersion":"0.12.7","dependencies":{"on-off":"0.0.2"},"devDependencies":{"babel":"^5.8.21","babelify":"^6.1.3","browserify":"^11.0.1"}},"1.0.0":{"name":"one-event","version":"1.0.0","keywords":["browser","dom","binding","event","events","once","addeventlistener"],"author":{"url":"twitter.com/bfred_it","name":"Federico Brigante","email":"bfred-it@users.noreply.github.com"},"license":"MIT","_id":"one-event@1.0.0","maintainers":[{"name":"bfred-it","email":"npm@bfred.it"}],"homepage":"https://github.com/bfred-it/one-event#readme","bugs":{"url":"https://github.com/bfred-it/one-event/issues"},"dist":{"shasum":"de3e51b87d4e316a0c2e98fe33065cd4f2d6d829","tarball":"https://registry.npmjs.org/one-event/-/one-event-1.0.0.tgz","integrity":"sha512-QIzVOXP9h5x37Q2HIaugGB9M9JCWZjBJ+cGq81OrmPXCbIdlRC5+KNgCR3YsX811lgDPYAPzlxU4fonscIwq/A==","signatures":[{"sig":"MEUCIQC5mR9nu+Tjj1quBFqkZLd3iGU+NRXkMAXIy2eSRGyQegIgczxN2kBb7qOuIlmWTzkIAyMemB4Yxte1iqUKkEJwsig=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"dist/one-event.node.js","_from":".","files":["index.js","dist/one-event.node.js"],"_shasum":"de3e51b87d4e316a0c2e98fe33065cd4f2d6d829","engines":{"node":">=0.10.0"},"gitHead":"5dc41e093b7e5e855a7dacf19f6d29a15167d062","scripts":{"build":"./node_modules/bfred-npm-bundler/tasks/all.sh index.js oneEvent one-event","to-npm":"./node_modules/bfred-npm-bundler/tasks/to-npm.sh index.js one-event","prepublish":"npm run to-npm"},"_npmUser":{"name":"bfred-it","email":"npm@bfred.it"},"repository":{"url":"git+https://github.com/bfred-it/one-event.git","type":"git"},"_npmVersion":"3.2.1","description":"Micro module to add an event listener to be executed only once","directories":{},"_nodeVersion":"0.12.7","dependencies":{"on-off":"0.0.2"},"devDependencies":{"bfred-npm-bundler":"^1.0.0"}},"1.1.0":{"name":"one-event","version":"1.1.0","keywords":["browser","dom","binding","event","events","once","one","addeventlistener"],"author":{"url":"twitter.com/bfred_it","name":"Federico Brigante","email":"bfred-it@users.noreply.github.com"},"license":"MIT","_id":"one-event@1.1.0","maintainers":[{"name":"bfred-it","email":"npm@bfred.it"}],"homepage":"https://github.com/bfred-it/one-event#readme","bugs":{"url":"https://github.com/bfred-it/one-event/issues"},"dist":{"shasum":"f206d9432cf758662088d81cb71147da3a5cca81","tarball":"https://registry.npmjs.org/one-event/-/one-event-1.1.0.tgz","integrity":"sha512-5dAsoHht5kVyAqge6vnvzHh6PWm9A6pvVJC/vj/5v7zK1xzNLPJskXNerRm5cPgY3vrGOrEyB6eoPeciBmryNA==","signatures":[{"sig":"MEQCIFIseqsdnnRq4n02WEIJCvovvU86kMk+2wuhOt798pnWAiBOMQnv+blZuGROmcG2geHpyDm4kgWcnAFBWC61oG+7Kg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"dist/one-event.node.js","_from":".","babel":{"presets":["es2015-rollup"]},"files":["index.js","dist/one-event.node.js"],"_shasum":"f206d9432cf758662088d81cb71147da3a5cca81","engines":{"node":">=0.10.0"},"gitHead":"0113167b8b7ae6cd934eef764dd6fce28c7ea397","scripts":{"build":"bfred-npm-bundler one-event oneEvent","prepublish":"npm run build"},"_npmUser":{"name":"bfred-it","email":"npm@bfred.it"},"repository":{"url":"git+https://github.com/bfred-it/one-event.git","type":"git"},"_npmVersion":"3.8.3","description":"Micro module to add an event listener to be executed only once","directories":{},"_nodeVersion":"5.8.0","dependencies":{"on-off":"^1.0.0"},"devDependencies":{"bfred-npm-bundler":"^5.0.0","babel-preset-es2015-rollup":"^1.1.1"},"_npmOperationalInternal":{"tmp":"tmp/one-event-1.1.0.tgz_1460694203043_0.1585211344063282","host":"packages-16-east.internal.npmjs.com"}},"1.1.1":{"name":"one-event","version":"1.1.1","keywords":["browser","dom","binding","event","events","once","one","addeventlistener"],"author":{"url":"twitter.com/bfred_it","name":"Federico Brigante","email":"bfred-it@users.noreply.github.com"},"license":"MIT","_id":"one-event@1.1.1","maintainers":[{"name":"bfred-it","email":"npm@bfred.it"}],"homepage":"https://github.com/bfred-it/one-event#readme","bugs":{"url":"https://github.com/bfred-it/one-event/issues"},"dist":{"shasum":"72dcb440315b8a43ca375b05bde1725dca67d311","tarball":"https://registry.npmjs.org/one-event/-/one-event-1.1.1.tgz","integrity":"sha512-59UAgxoRsXqcyQ0HdjmwhvtegyCQ1Aiw/gZA6G2+GhwBt4sXh8tUVkbpm7iGx5C2jY821tFppyeD1pp0WHe/ZA==","signatures":[{"sig":"MEYCIQCA+lI2ujEQA3rkUeZYsaduKLZ/YKxErXHIbuNXEMIM3wIhALGIA9OWqiZP/ioDJQsdkGbBGqevfWYiBiqvYG9tudln","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"dist/one-event.common-js.js","_from":".","babel":{"presets":["es2015-rollup"]},"files":["dist/one-event.common-js.js","dist/one-event.es-modules.js"],"_shasum":"72dcb440315b8a43ca375b05bde1725dca67d311","engines":{"node":">=0.10.0"},"gitHead":"0113167b8b7ae6cd934eef764dd6fce28c7ea397","scripts":{"build":"bfred-npm-bundler one-event oneEvent","prepublish":"npm run build"},"_npmUser":{"name":"bfred-it","email":"npm@bfred.it"},"repository":{"url":"git+https://github.com/bfred-it/one-event.git","type":"git"},"_npmVersion":"3.8.3","description":"Micro module to add an event listener to be executed only once","directories":{},"jsnext:main":"dist/one-event.es-modules.js","_nodeVersion":"5.8.0","dependencies":{"on-off":"^1.0.0"},"devDependencies":{"bfred-npm-bundler":"^5.0.0","babel-preset-es2015-rollup":"^1.1.1"},"_npmOperationalInternal":{"tmp":"tmp/one-event-1.1.1.tgz_1460694585965_0.4277776093222201","host":"packages-12-west.internal.npmjs.com"}},"1.2.0":{"name":"one-event","version":"1.2.0","keywords":["browser","dom","binding","event","events","once","one","addeventlistener"],"author":{"url":"twitter.com/bfred_it","name":"Federico Brigante","email":"bfred-it@users.noreply.github.com"},"license":"MIT","_id":"one-event@1.2.0","maintainers":[{"name":"bfred-it","email":"npm@bfred.it"}],"homepage":"https://github.com/bfred-it/one-event#readme","bugs":{"url":"https://github.com/bfred-it/one-event/issues"},"xo":{"env":["browser"],"esnext":true},"dist":{"shasum":"bd4634d3a5797edac62d1879e769ad3a42f3d73b","tarball":"https://registry.npmjs.org/one-event/-/one-event-1.2.0.tgz","integrity":"sha512-3KlPXHRcStZqzjZR5UDWbslmVPbwPjcpdt2itUukwEs/dYebOc+gJlEkXXkxWM9e2C+6rHBukqQs8J1scs5COw==","signatures":[{"sig":"MEYCIQC/YAevCnrxNAEPwgiFMckdGRCDbD4tiFRzc5oMpFbNowIhAJtec+qZR0fovZxyqCiLn56pvydSN9E4E54IiUgkBPT7","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"dist/one-event.common-js.js","_from":".","files":["dist/one-event.common-js.js","dist/one-event.es-modules.js","dist/one-event.browser.js"],"_shasum":"bd4634d3a5797edac62d1879e769ad3a42f3d73b","gitHead":"5749f41d5c46ac0aeb3c8bf9efc24a5f950ea94c","scripts":{"test":"xo; npm run build","build":"npm-run-all --silent jsfix build:*","jsfix":"xo --fix","watch":"npm-run-all --parallel --silent watch:*","build:js":"bfred-npm-bundler one-event oneEvent","prepublish":"npm run build","watch:build":"onchange 'index.js' -i -- npm run build"},"_npmUser":{"name":"bfred-it","email":"npm@bfred.it"},"repository":{"url":"git+https://github.com/bfred-it/one-event.git","type":"git"},"_npmVersion":"3.7.3","description":"Micro module to add an event listener to be executed only once","directories":{},"jsnext:main":"dist/one-event.es-modules.js","_nodeVersion":"5.8.0","devDependencies":{"xo":"^0.13.0","onchange":"^2.2.0","npm-run-all":"^1.7.0","bfred-npm-bundler":"^7.1.1"},"_npmOperationalInternal":{"tmp":"tmp/one-event-1.2.0.tgz_1466758705677_0.111402623122558","host":"packages-16-east.internal.npmjs.com"}},"2.0.0":{"name":"one-event","version":"2.0.0","keywords":["addeventlistener","binding","browser","promise","dom","event","events","once","one"],"license":"MIT","_id":"one-event@2.0.0","maintainers":[{"name":"fregante","email":"opensource@bfred.it"}],"homepage":"https://github.com/fregante/one-event#readme","bugs":{"url":"https://github.com/fregante/one-event/issues"},"xo":{"envs":["browser"]},"dist":{"shasum":"2adfb319a5148f970612817a6184946728540354","tarball":"https://registry.npmjs.org/one-event/-/one-event-2.0.0.tgz","fileCount":5,"integrity":"sha512-NCc3ikz5oxZ6pUB2VmCfI67aZaRxnNZWXvJRQsnW0PRzheMdeqs+VfPGhyhUvIvc4T1nIdUbX8PtJIzToMwd5g==","signatures":[{"sig":"MEYCIQDsqx4aUwNu1syjYY9mFzgkxZRlyr/0tCWuOXM6gntKFAIhAPQfZO44DtNe9qU5IIXkvCdwrzYWM+Z9ReUCckAOrY8Z","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4632,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfv/eVCRA9TVsSAnZWagAAB5wQAI5Db+6WjFoT87d0QIoF\n1zr3QiLG72ktaA+c3RMKewFMMVlJmu0A4gR7o1MrD0+9DktTQIqlRpgPu02b\n1VOi9kq/wTTkJO15J5dXsshSi+rk+Ra7fCVy52paJcmowu9bp4K1/e+TS5i7\nXJpU5Vy3ht8/gUmuLz/8nNP1DxZzMf1gkOL5s6PwUwBlHsHv8igFWKeJjPyz\n6Pll993SbMZIFtoWUvE0wMRKIvp9UtzcUEALS0shaeVGeofnogFlzcsokjM6\nT/50AlptQupKfDfxwf/3BvcNQCMglRJNGvg5T/N1N7eZZILvwziGXHfnRxte\nIxMNOXS03PIlV/Luryl6wY8dwCQKOTng5tDRQMjwuVLJi2/sX6CUUfg8OG1y\n7e8ZXoY3z4l7Omn7E5D38HTfAwIucyOKR1unf/0xl1aDXaH9HYf7aWtDXHnI\n2y77aIBDNEdG0e43z2YMNk/qDzf4KIc+7hDHQP9z0989gP14pCisnVxEWPAb\nvAWu3nlfyUlY8votbw0Jfa/inRm0oLtr35jO6YguTlKHnW4JwNjgahcWzLro\n5H2t+TRfP4xuJo9ArxDo7yZzOBgHbaeCtHtbuC+EKFBCblEhMCR/UPPojnn0\n7t70m9/O7KfNFLLHPLcn4JLWQlj9O+rY+QfEOSjCqL5Vg35sLdJEOPj9e3ie\nm1Xe\r\n=P+o2\r\n-----END PGP SIGNATURE-----\r\n"},"types":"./index.d.ts","gitHead":"c7a1af157ef727425901f375fe41bdf06328c308","scripts":{"test":"tsc && xo","build":"tsc","watch":"tsc --watch","prepack":"tsc --sourceMap false"},"_npmUser":{"name":"fregante","email":"opensource@bfred.it"},"repository":{"url":"git+https://github.com/fregante/one-event.git","type":"git"},"_npmVersion":"7.0.8","description":"Listen to one event via `addEventListener`, then resolve a Promise","directories":{},"_nodeVersion":"15.2.1","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"xo":"^0.35.0","typescript":"^4.1.2","@sindresorhus/tsconfig":"^0.8.0"},"_npmOperationalInternal":{"tmp":"tmp/one-event_2.0.0_1606416276990_0.25487753502375643","host":"s3://npm-registry-packages"}},"3.0.0":{"name":"one-event","version":"3.0.0","keywords":["addeventlistener","binding","browser","promise","dom","event","events","once","one"],"license":"MIT","_id":"one-event@3.0.0","maintainers":[{"name":"fregante","email":"opensource@bfred.it"}],"homepage":"https://github.com/fregante/one-event#readme","bugs":{"url":"https://github.com/fregante/one-event/issues"},"xo":{"envs":["browser"]},"dist":{"shasum":"c042fc7d40b6fd87c6490cc38a49f42be3b5491c","tarball":"https://registry.npmjs.org/one-event/-/one-event-3.0.0.tgz","fileCount":5,"integrity":"sha512-+brefrrBQcdd+NxlAGd5b/trCxNdAa0WcwFXtcS9/atw1HN3MGMisV5PR8UGnEAtM5s6MVLghydqlj+7edrMxg==","signatures":[{"sig":"MEQCIBHhQtKKyZ+Z/4LkEE1G8VcnbTgfyokeAMHJqLMvPLZIAiA0Wkvt9zIjDIaG9UknXdTcG7s3l0q/ipnnkVV550mOtQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3891,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgBL6iCRA9TVsSAnZWagAA1jMP/0YdBOcemJN3qLMLXRj4\n6Bm8CcXrGhscYNtab/6AxXvGr+OnJ3g61oUX6/KzdiZfG65O+3K/uItAb4B1\nkeFSkiCFatCX5QecZlrYHuvpVK8oj22jjk3/iaR3p2fxN94lulmfUiZfc3Oa\nRSHaTAbKOtbGQ/Qt9mFXuLEb6tyrFT73Bks9nrFLVeo7GRX9tUw1SkXazADc\n3xQHoqqGudVBcsDcZY2M+DTKk5CbB0auQ+/UbZuj9qC/jcZ18pk40WqzwNXv\nvpgPnihlVUV9dRrTq7VqdSnO25Xxl087RPfgp4D8Q6cfDJ4p5T88esbmLtif\n5KuUEA19GroV9Fn3AHsLHEq0aJ/2DisranNEa/dP6zV093fDS1eOij+H4cTk\nFyPBAxGNxoDG31gjWLCfXyJpBvZdCS8nohwARR877pN0MqmsZkdG29lqsAdQ\nJKZ59K6WuQB+ThqdKoAMqtMJlRLcj1V2ZH3JAijA4+04GT05lso7ImUGa/cn\ny9AWMUNxsS+adxMMu12m54rgLFUxl0Crd4w1++0+g+wRX2mhR4evlipUsh01\nUwaRnY+uqpfHmcze0lf7cAEn8UC1yiUSBiymCaLiaJjhQ7WM0jpHSqrx8vHR\nXaVqoJrPRDloa6aMzG71VU9DSPKE8AMMYAJANqHGwH6RLPa5zgH9Yqp4fpPt\nQJIW\r\n=4zhq\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","type":"module","types":"./index.d.ts","module":"index.js","gitHead":"c8852be64ca719460e9b191127b9b96817056af4","scripts":{"test":"tsc && xo","build":"tsc","watch":"tsc --watch","prepack":"tsc --sourceMap false"},"_npmUser":{"name":"fregante","email":"opensource@bfred.it"},"repository":{"url":"git+https://github.com/fregante/one-event.git","type":"git"},"_npmVersion":"7.0.8","description":"Listen to one event via `addEventListener`, then resolve a Promise","directories":{},"_nodeVersion":"15.2.1","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"xo":"^0.35.0","typescript":"^4.1.2","@sindresorhus/tsconfig":"^0.8.0"},"_npmOperationalInternal":{"tmp":"tmp/one-event_3.0.0_1610923682461_0.5856763967425274","host":"s3://npm-registry-packages"}},"3.1.0":{"name":"one-event","version":"3.1.0","keywords":["addeventlistener","binding","browser","promise","dom","event","events","once","one"],"license":"MIT","_id":"one-event@3.1.0","maintainers":[{"name":"fregante","email":"opensource@bfred.it"}],"homepage":"https://github.com/fregante/one-event#readme","bugs":{"url":"https://github.com/fregante/one-event/issues"},"xo":{"envs":["browser"]},"dist":{"shasum":"5f15bbe411aa61cccc32a96259b9b08a6d072613","tarball":"https://registry.npmjs.org/one-event/-/one-event-3.1.0.tgz","fileCount":5,"integrity":"sha512-nLkMWwsCaZpgjyoiRx4BAAlfi9C4aO2eFsRKLtxVCE8RqZrdJM5bc9lwfcMSf1TS4UKc+GgazHA5KypzztjTQg==","signatures":[{"sig":"MEUCIQDWAstShmD/NWI8H0MkpBqHmFB+n/HJ30kq3SYwIW+MVQIgFHzWn6YeuxU+ZUWLox/2bju5uKeq/rcgbLvwwEdbHO0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4012,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkCgEvACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpnMQ/+JFd0nGCNFxbBN1Ok4dd8GwGHMAJQ1N1jgVa+dlzD9LvLzA+7\r\njgQZwhN0AgeAc7ZdBjo8xq9WgvLNIGa03722wmi+dmtODXAlnaNk7QxxsybB\r\neMoDYGrJS26auHwR0SE7EwynWB0XOAypBAxD3xlwStcX0ZEkRyHhaIGYsG0u\r\nNKOyiaBgWgk1GYbQ9FZdxL7Y/rwkX5nEXvIXxp2V11iDySL15PziHv4VxyRP\r\neZr/IB+Gghl7kjwBjhjXPimE2nesToWlAWpCvKAZhZe2hT+rvVbCJTPM0aZe\r\n0xuBFGyxkTmlgNLvQpLdT05gJQpiGW8VI65sRWQZ0gPA25Oj4ROxu7rzhHXa\r\nM3kwReeJuOmNsmlNqy6ddP2nCnzxSYxXojk5UBSpWQoABcm+VoThm2O6D23M\r\nY21MRxCjdRPrkd+ELPVhylSworOoT06c8CW6gejvFnRmbq0i09EIPu3O8Dr9\r\n4EH0jNXqw8IDTu6NNiwc42mpqzmf3/D/VBVM8cvHxXkVEuCH+63eKVC6LAP1\r\nih0znB807s0Lg/dNWgF/sXZa1N2tQYPYUUQQNTUNJNqm1xojM2k4zFE2naWU\r\nvqdG2MnI/bLm4O7iAK0ufoknK6OxRaeurfkQf7d3cCvtA83PLszwaHkZLKkF\r\nZkS5gaAFBDhstKvRu9UxR9Hh8J0ULk4cMsc=\r\n=UENU\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","type":"module","types":"./index.d.ts","exports":"./index.js","funding":"https://github.com/sponsors/fregante","gitHead":"d1ef56be74cd6a7f20d64aec24126881d01ad1f4","scripts":{"test":"tsc && xo","build":"tsc","watch":"tsc --watch","prepack":"tsc --sourceMap false"},"_npmUser":{"name":"fregante","email":"opensource@bfred.it"},"repository":{"url":"git+https://github.com/fregante/one-event.git","type":"git"},"_npmVersion":"9.6.0","description":"Listen to one event via `addEventListener`, then resolve a Promise","directories":{},"_nodeVersion":"18.13.0","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"xo":"^0.53.1","typescript":"^4.9.5","@sindresorhus/tsconfig":"^3.0.1"},"_npmOperationalInternal":{"tmp":"tmp/one-event_3.1.0_1678377262783_0.2758304277603616","host":"s3://npm-registry-packages"}},"4.0.0":{"name":"one-event","version":"4.0.0","keywords":["addeventlistener","binding","browser","promise","dom","event","events","once","one"],"license":"MIT","_id":"one-event@4.0.0","maintainers":[{"name":"fregante","email":"opensource@bfred.it"}],"homepage":"https://github.com/fregante/one-event#readme","bugs":{"url":"https://github.com/fregante/one-event/issues"},"xo":{"envs":["browser"]},"dist":{"shasum":"9525982d402da91ffe661ee719ec68144aee1170","tarball":"https://registry.npmjs.org/one-event/-/one-event-4.0.0.tgz","fileCount":5,"integrity":"sha512-tKt8AShhfsub9bLmSRaOxgZ9p8G8TZDe7nW6O9wYNz2fMnXpaUAqyXu8k/4VbvWjcpxJbbQV+iku75O6lkbZsg==","signatures":[{"sig":"MEUCIQD5TObc4S5xy/nVb5MXd3s04Q6LxHgFg5KSIdU5MGNQMwIgNwC7H4Ii7hdhsfOosIP2+6v/wXMHb5li2xrccjrWSEA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3910},"main":"./index.js","type":"module","types":"./index.d.ts","engines":{"node":">=18"},"exports":"./index.js","funding":"https://github.com/sponsors/fregante","gitHead":"c32679533bb8a5de4c5f4e183fe71aeb15d84d59","scripts":{"test":"tsc && xo","build":"tsc","watch":"tsc --watch","prepack":"tsc --sourceMap false"},"_npmUser":{"name":"fregante","email":"opensource@bfred.it"},"repository":{"url":"git+https://github.com/fregante/one-event.git","type":"git"},"_npmVersion":"10.2.3","description":"Listen to one event via `addEventListener`, then resolve a Promise","directories":{},"_nodeVersion":"20.10.0","_hasShrinkwrap":false,"devDependencies":{"xo":"^0.56.0","typescript":"^5.3.3","@sindresorhus/tsconfig":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/one-event_4.0.0_1703139150548_0.29414038816962695","host":"s3://npm-registry-packages"}},"4.1.0":{"name":"one-event","version":"4.1.0","keywords":["addeventlistener","binding","browser","promise","dom","event","events","once","one"],"license":"MIT","_id":"one-event@4.1.0","maintainers":[{"name":"fregante","email":"opensource@bfred.it"}],"homepage":"https://github.com/fregante/one-event#readme","bugs":{"url":"https://github.com/fregante/one-event/issues"},"xo":{"envs":["browser"]},"dist":{"shasum":"e4d4c2b7d86b30682ad68312c8e0dc9783e5c9d6","tarball":"https://registry.npmjs.org/one-event/-/one-event-4.1.0.tgz","fileCount":5,"integrity":"sha512-e9AxCf3puzgaB4PZdWkVlMImqTrdc3RCB8/A14rIYW+oIZw8lxcwRxxLXx2NCi7dEUejxxOzQSoRBLlQ7vP/xA==","signatures":[{"sig":"MEUCIQDhS+Rb2uu5b0FBqpCHf3XpLLIshFurFqNbIFITQy7t6QIgcMxuPfgCd+22c5hsKJcRKZUKNVZqyb5K0AWR0y61iHg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4026},"main":"./index.js","type":"module","types":"./index.d.ts","engines":{"node":">=18"},"exports":"./index.js","funding":"https://github.com/sponsors/fregante","gitHead":"fcd0116dfc133eb30cc82ae9f0c7f6c832fbdd1b","scripts":{"test":"tsc && xo","build":"tsc","watch":"tsc --watch","prepack":"tsc --sourceMap false"},"_npmUser":{"name":"fregante","email":"opensource@bfred.it"},"repository":{"url":"git+https://github.com/fregante/one-event.git","type":"git"},"_npmVersion":"10.2.3","description":"Listen to one event via `addEventListener`, then resolve a Promise","directories":{},"_nodeVersion":"20.10.0","_hasShrinkwrap":false,"devDependencies":{"xo":"^0.56.0","typescript":"^5.3.3","@sindresorhus/tsconfig":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/one-event_4.1.0_1703173985595_0.07167605642445074","host":"s3://npm-registry-packages"}},"4.2.0":{"name":"one-event","version":"4.2.0","keywords":["addeventlistener","binding","browser","promise","dom","event","events","once","one"],"license":"MIT","_id":"one-event@4.2.0","maintainers":[{"name":"fregante","email":"opensource@bfred.it"}],"homepage":"https://github.com/fregante/one-event#readme","bugs":{"url":"https://github.com/fregante/one-event/issues"},"xo":{"envs":["browser"]},"dist":{"shasum":"adaf793a094d65d3d29e7d82f22b79ae482de0fb","tarball":"https://registry.npmjs.org/one-event/-/one-event-4.2.0.tgz","fileCount":5,"integrity":"sha512-mZqs9lFFfwEQLAqgr09b5cRxWWyfNF+X1CuyaXU9oBYxrNCcS+qTERNMgKxI7UP6cquFLdmYew9IrFkTPSCbiA==","signatures":[{"sig":"MEYCIQCLqdJ8squ98i8dTafG010WMxSlx0z4gXZZFHmIa+GwLwIhANuj8Nyxhsh+Qxnv3G1bY0ZyG1bCgEN5bbCnkWu/8wNd","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4056},"main":"./index.js","type":"module","types":"./index.d.ts","engines":{"node":">=18"},"exports":"./index.js","funding":"https://github.com/sponsors/fregante","gitHead":"28f31735048d3cf003a925a72cdc1cc903c99b4d","scripts":{"test":"tsc && xo","build":"tsc","watch":"tsc --watch","prepack":"tsc --sourceMap false"},"_npmUser":{"name":"fregante","email":"opensource@bfred.it"},"repository":{"url":"git+https://github.com/fregante/one-event.git","type":"git"},"_npmVersion":"10.2.3","description":"Listen to one event via `addEventListener`, then resolve a Promise","directories":{},"_nodeVersion":"20.10.0","_hasShrinkwrap":false,"devDependencies":{"xo":"^0.56.0","typescript":"^5.3.3","@sindresorhus/tsconfig":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/one-event_4.2.0_1703236834841_0.9122211728359018","host":"s3://npm-registry-packages"}},"4.3.0":{"name":"one-event","version":"4.3.0","keywords":["addeventlistener","binding","browser","promise","dom","event","events","once","one"],"license":"MIT","_id":"one-event@4.3.0","maintainers":[{"name":"fregante","email":"opensource@bfred.it"}],"homepage":"https://github.com/fregante/one-event#readme","bugs":{"url":"https://github.com/fregante/one-event/issues"},"xo":{"envs":["browser"]},"dist":{"shasum":"352d6707c9783de05d62326bda609961cddfbb9e","tarball":"https://registry.npmjs.org/one-event/-/one-event-4.3.0.tgz","fileCount":5,"integrity":"sha512-R6RkjfeEieV6+fz2JDuRD1KwP2qXLg0Y3/33RgvaAE5+TiqKaE7l+2qOHmHMMoRwa8qnN6FDPS9D/wNT40+OeQ==","signatures":[{"sig":"MEUCICBt9Z6FHk95TYt32+6jmENMe+nWSEr/u+nkXylBDVANAiEAxI75Ej8EBLf9C31fP7c8vNxY0BZGaM8bPghddUnE/Rg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4727},"main":"./index.js","type":"module","types":"./index.d.ts","engines":{"node":">=18"},"exports":"./index.js","funding":"https://github.com/sponsors/fregante","gitHead":"2bf868b20f98de1e117a0ab9086fc0afb9e07846","scripts":{"test":"tsc && xo","build":"tsc","watch":"tsc --watch","prepack":"tsc --sourceMap false"},"_npmUser":{"name":"fregante","email":"opensource@bfred.it"},"repository":{"url":"git+https://github.com/fregante/one-event.git","type":"git"},"_npmVersion":"10.8.2","description":"Listen to one event via `addEventListener`, then resolve a Promise","directories":{},"_nodeVersion":"22.6.0","_hasShrinkwrap":false,"devDependencies":{"xo":"^0.56.0","typescript":"^5.3.3","@sindresorhus/tsconfig":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/one-event_4.3.0_1724693590755_0.47637063421050385","host":"s3://npm-registry-packages"}},"4.4.0":{"name":"one-event","version":"4.4.0","description":"Listen to one event via `addEventListener`, then resolve a Promise","keywords":["addeventlistener","binding","browser","promise","dom","event","events","once","one"],"repository":{"type":"git","url":"git+https://github.com/fregante/one-event.git"},"funding":"https://github.com/sponsors/fregante","license":"MIT","type":"module","exports":"./index.js","main":"./index.js","types":"./index.d.ts","scripts":{"build":"tsc","prepack":"tsc --sourceMap false","test":"tsc && xo","watch":"tsc --watch"},"xo":{"envs":["browser"]},"devDependencies":{"@sindresorhus/tsconfig":"^5.0.0","typescript":"^5.3.3","xo":"^0.56.0"},"engines":{"node":">=18"},"_id":"one-event@4.4.0","gitHead":"729289d7920bcbc1f92743bd5472f3d80ebac10b","bugs":{"url":"https://github.com/fregante/one-event/issues"},"homepage":"https://github.com/fregante/one-event#readme","_nodeVersion":"22.18.0","_npmVersion":"10.9.3","dist":{"integrity":"sha512-pBKpjHoqf0P4Ne59sVP4mdkudGqASabycau4OOOch+PYj/wEQwNw5ECUuIj9Cw42TKVyKcTCewugg4Nt5XLlKQ==","shasum":"dca0776981887d9d1bb83390dfa6e19400a1ac5e","tarball":"https://registry.npmjs.org/one-event/-/one-event-4.4.0.tgz","fileCount":5,"unpackedSize":5228,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIB6KxiGLr1P82EydVE8E9k29U9ffXsz0avJB0lytHm1SAiAMcvcxXnTe1E591WJfcLV61AO/kl6F4tBxtlDN0L/3OQ=="}]},"_npmUser":{"name":"fregante","email":"opensource@bfred.it"},"directories":{},"maintainers":[{"name":"fregante","email":"opensource@bfred.it"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/one-event_4.4.0_1769076135130_0.25794322297764016"},"_hasShrinkwrap":false}},"time":{"created":"2015-08-16T09:32:35.797Z","modified":"2026-01-22T10:02:15.415Z","0.5.0":"2015-08-16T09:32:35.797Z","1.0.0":"2015-08-19T08:25:46.250Z","1.1.0":"2016-04-15T04:23:26.674Z","1.1.1":"2016-04-15T04:29:46.511Z","1.2.0":"2016-06-24T08:58:29.151Z","2.0.0":"2020-11-26T18:44:37.195Z","3.0.0":"2021-01-17T22:48:02.639Z","3.1.0":"2023-03-09T15:54:22.991Z","4.0.0":"2023-12-21T06:12:30.762Z","4.1.0":"2023-12-21T15:53:05.784Z","4.2.0":"2023-12-22T09:20:35.091Z","4.3.0":"2024-08-26T17:33:10.900Z","4.4.0":"2026-01-22T10:02:15.282Z"},"bugs":{"url":"https://github.com/fregante/one-event/issues"},"license":"MIT","homepage":"https://github.com/fregante/one-event#readme","keywords":["addeventlistener","binding","browser","promise","dom","event","events","once","one"],"repository":{"type":"git","url":"git+https://github.com/fregante/one-event.git"},"description":"Listen to one event via `addEventListener`, then resolve a Promise","maintainers":[{"name":"fregante","email":"opensource@bfred.it"}],"readme":"# one-event [![][badge-gzip]][link-bundlephobia]\n\n[badge-gzip]: https://img.shields.io/bundlephobia/minzip/one-event.svg?label=gzipped\n[link-bundlephobia]: https://bundlephobia.com/result?p=one-event\n\n> Listen to one event via `addEventListener`, then resolve a Promise\n\nNote: This module is based on the [`once` option of addEventListener](https://dev.to/cilly_boloe/addeventlistener-once-js-bits-565d). Before v2 it was a replacement for it.\n\n## Install\n\n```sh\nnpm install one-event\n```\n\n```js\n// This module is only offered as a ES Module\nimport oneEvent from 'one-event';\n```\n\n## Usage\n\n```js\nasync function init() {\n\tawait oneEvent(document.body, 'click', false);\n\tconsole.log('You clicked my body. Don’t do it again.');\n\t \n\tconst event = await oneEvent(document.head, ['mousedown', 'touchstart']);\n\tconsole.log('Knockout with:', event.type);\n}\n\ninit();\n```\n\n## API\n\n### oneEvent(target, typeOrTypes, options)\n\n`target` and `options` are the same as what you supply to [target.addEventListener(type, listener, options)](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener), with the addition of a `filter` to the `options` object.\n\n#### typeOrTypes\n\nType: `string | string[]`\n\nMatches the `type` parameter of `addEventListener`, but can also be used to listen to multiple events. The promise resolves when the first one happens.\n\n#### options.filter\n\nType: `(event: Event) => boolean`\n\nA filter function that will be called with the event that triggered the listener. The promise will resolve only once the filter returns `true`.\n\n## Alternatives\n\n- [sindresorhus/p-event](https://github.com/sindresorhus/p-event) - Also compatible with `EventEmitter` so it's much bigger.\n\n## Related\n\n- [one-mutation](https://github.com/fregante/one-mutation) - Observe one mutation via `MutationObserver`, then resolve a Promise.\n- [select-dom](https://github.com/fregante/select-dom) - Lightweight `querySelector`/`All` wrapper that outputs an Array.\n- [doma](https://github.com/fregante/doma) - Parse an HTML string into `DocumentFragment` or one `Element`, in a few bytes.\n- [Refined GitHub](https://github.com/refined-github/refined-github) - Uses this module.\n\n## License\n\nMIT © [Federico Brigante](https://fregante.com)\n","readmeFilename":"readme.md","users":{"bfred-it":true}}