{"id":18307419,"url":"https://github.com/devgeeks/tinyvents","last_synced_at":"2026-02-27T05:06:00.438Z","repository":{"id":142086268,"uuid":"21466454","full_name":"devgeeks/tinyvents","owner":"devgeeks","description":"A very small and simple lib to attach events to plain JavaScript objects. Inspired by / based on https://github.com/jeromeetienne/microevent.js","archived":false,"fork":false,"pushed_at":"2014-12-02T08:36:57.000Z","size":248,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-05T17:36:35.623Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devgeeks.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-07-03T14:57:22.000Z","updated_at":"2019-08-13T15:45:14.000Z","dependencies_parsed_at":"2023-03-13T10:20:00.853Z","dependency_job_id":null,"html_url":"https://github.com/devgeeks/tinyvents","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/devgeeks/tinyvents","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devgeeks%2Ftinyvents","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devgeeks%2Ftinyvents/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devgeeks%2Ftinyvents/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devgeeks%2Ftinyvents/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devgeeks","download_url":"https://codeload.github.com/devgeeks/tinyvents/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devgeeks%2Ftinyvents/sbom","scorecard":{"id":337488,"data":{"date":"2025-08-11","repo":{"name":"github.com/devgeeks/tinyvents","commit":"bf81793080b551c10223f22e9c85c155517bf7bf"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"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":"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":"Code-Review","score":0,"reason":"Found 0/26 approved changesets -- score normalized to 0","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":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"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":"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":"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":"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":"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":"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":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"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":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"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"}}]},"last_synced_at":"2025-08-18T05:04:45.809Z","repository_id":142086268,"created_at":"2025-08-18T05:04:45.809Z","updated_at":"2025-08-18T05:04:45.809Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29885801,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-26T23:51:21.483Z","status":"online","status_checked_at":"2026-02-27T02:00:06.759Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-11-05T16:04:12.664Z","updated_at":"2026-02-27T05:06:00.417Z","avatar_url":"https://github.com/devgeeks.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"tinyvents\n============\n\n[![Build Status](https://travis-ci.org/devgeeks/tinyvents.svg?branch=master)](https://travis-ci.org/devgeeks/tinyvents)\n\nA very small and simple lib to attach events to plain JavaScript objects.\n\nInspired by / based on https://github.com/jeromeetienne/microevent.js\n\n## Using Tinyvents\n\nInclude the `tinyvents.js` or `tinyvents.min.js` file in your html:\n\n    \u003cscript src=\"tinyvents.js\"\u003e\u003c/script\u003e\n\nOr in node.js:\n\n    npm install tinyvents\n\n...then in your app:\n\n    var Tinyvents = require('tinyvents');\n\n#### Tinyvents.mixin() `Tinyvents.mixin(MyModule);`\n\nSuppose you have a module (JavaScript object or function) `MyModule`, and you would like it to support the observer \npattern:\n\n    Tinyvents.mixin(MyModule);\n\n`MyModule` now has methods for `.on()`, `once()`, `off()`, and `trigger()`.\n\n#### .on() `MyModule.on(event, callback);`\n\nAdds a listener for an event called \"change\", and when triggered calls the\ncallback function with any arguments\n\n    MyModule.on('myevent', function(arg1) {\n      console.log(\"my event triggered: \" + arg1);\n    });\n\n#### .once() `MyModule.once(event, callback);`\n\nAdds a listener for an event called \"myevent\", and when triggered calls the\ncallback function with any arguments. This is only called once and any subsequent \n\"myevent\" events will not trigger the callback.\n\n    MyModule.once('myevent', function(arg1) {\n      console.log(\"my event fired once: \" + arg1);\n    });\n\n#### .off() `MyModule.off(event [, callback]);`\n\nRemoves a listener for an event with a specified callback if the callback is specified.\n\n    MyModule.off('myevent', myEventCallback);\n\n...or removes ALL listeners for an event if no callback specified.\n\n    MyModule('myevent');\n\n#### .trigger() `MyModule.trigger(event [, arg1, arg2, arg3, ...])`\n\nTriggers an event and optionally passes any number of arguments.\n\n    MyModule.trigger('myevent', Date.now());\n\n#### Aliases\n\nFor convenience, the following methods have the following aliases:\n\n* `.on()` == `.bind()`\n* `.once()` == `.one()`\n* `.off()` == `.unbind()`\n* `.trigger()` == `.fire()`\n\n\n\n## LICENSE\n\nThe MIT License (MIT)\n\nCopyright (c) 2011 Jerome Etienne, http://jetienne.com  \nCopyright (c) 2014 tommy-carlos williams\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevgeeks%2Ftinyvents","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevgeeks%2Ftinyvents","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevgeeks%2Ftinyvents/lists"}