{"id":41566072,"url":"https://github.com/migme/bubbly","last_synced_at":"2026-01-24T06:19:28.730Z","repository":{"id":57190829,"uuid":"38123111","full_name":"migme/bubbly","owner":"migme","description":":sweat_drops: Shorthand for event handling","archived":false,"fork":false,"pushed_at":"2016-04-20T02:35:12.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":53,"default_branch":"master","last_synced_at":"2025-07-03T17:17:33.003Z","etag":null,"topics":["beach","web"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/migme.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-06-26T17:01:31.000Z","updated_at":"2016-04-20T02:26:41.000Z","dependencies_parsed_at":"2022-09-15T15:51:27.697Z","dependency_job_id":null,"html_url":"https://github.com/migme/bubbly","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/migme/bubbly","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/migme%2Fbubbly","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/migme%2Fbubbly/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/migme%2Fbubbly/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/migme%2Fbubbly/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/migme","download_url":"https://codeload.github.com/migme/bubbly/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/migme%2Fbubbly/sbom","scorecard":{"id":644121,"data":{"date":"2025-08-11","repo":{"name":"github.com/migme/bubbly","commit":"10a93ccbf16de4d32eed13a4c6845a11f1745f43"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.1,"checks":[{"name":"Code-Review","score":1,"reason":"Found 3/18 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 8 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-21T11:37:34.826Z","repository_id":57190829,"created_at":"2025-08-21T11:37:34.826Z","updated_at":"2025-08-21T11:37:34.826Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28715832,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-24T05:53:42.649Z","status":"ssl_error","status_checked_at":"2026-01-24T05:53:41.698Z","response_time":89,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["beach","web"],"created_at":"2026-01-24T06:19:23.663Z","updated_at":"2026-01-24T06:19:28.723Z","avatar_url":"https://github.com/migme.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bubbly\n\n[![Travis CI](https://img.shields.io/travis/migme/bubbly.svg)](https://travis-ci.org/migme/bubbly)\n[![Dependency Status](https://gemnasium.com/migme/bubbly.svg)](https://gemnasium.com/migme/bubbly)\n[![npm](https://img.shields.io/npm/v/bubbly.svg)](https://www.npmjs.com/package/bubbly)\n[![npm](https://img.shields.io/npm/dm/bubbly.svg)](https://www.npmjs.com/package/bubbly)\n\nEffortlessly create [CustomEvent](https://dom.spec.whatwg.org/#interface-customevent) instances.\n\nTrigger events on any object that implements the [EventTarget](https://dom.spec.whatwg.org/#interface-eventtarget) interface.\n\nFits well with [Custom Elements](http://w3c.github.io/webcomponents/spec/custom/) in Web Components based apps.\n\nDesigned to be used with [ECMAScript Function Bind syntax](https://github.com/zenparsing/es-function-bind).\n\n## Installation\n\n```\nnpm install --save bubbly\n```\n\n## Usage\n\n### dispatch(type, detail)\n```js\nimport {dispatch} from 'bubbly'\nconst target = new EventTarget()\ntarget::dispatch('welcome', { hello: 'world' })\n```\n\n### bubble(type, detail)\nLike `dispatch` but lets the event bubble up.\n```js\nimport {bubble} from 'bubbly'\ndocument.body::bubble('shake', { dat: 'booty' })\n```\n\n### on(type, handler)\nAlias for `addEventListener`.\n```js\nimport {on} from 'bubbly'\ndocument::on('DOMContentLoaded', ::console.info)\n```\n\n### off(type, handler)\nAlias for `removeEventListener`.\n```js\nimport {off} from 'bubbly'\ndocument::off('DOMContentLoaded')\n```\n\n### once(type, handler)\nWait for an event to fire, then stop listening.\n```js\nimport {once} from 'bubbly'\nconst anchor = document.createElement('a')\nanchor::once('click', event =\u003e event.preventDefault())\n```\nOr treat an event like a Promise.\n```js\nawait anchor::once('click')\n```\n\n## Development\n\nRun tests\n```\nnpm test\n```\n\nTDD\n```\nmocha --watch\n```\n\n## See Also\n- [customevent-shim](https://www.npmjs.com/package/customevent-shim)\n- [event-target-shim](https://www.npmjs.com/package/event-target-shim)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmigme%2Fbubbly","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmigme%2Fbubbly","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmigme%2Fbubbly/lists"}