{"id":16897778,"url":"https://github.com/behnammodi/jetemit","last_synced_at":"2025-09-01T08:14:20.093Z","repository":{"id":39853077,"uuid":"149993505","full_name":"behnammodi/jetemit","owner":"behnammodi","description":"jetemit is an event manager for React, React Native, Vue, Angular, and all javascript project","archived":false,"fork":false,"pushed_at":"2023-01-07T05:12:20.000Z","size":630,"stargazers_count":45,"open_issues_count":3,"forks_count":6,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-08-24T22:44:07.925Z","etag":null,"topics":["events","javascript","listener","react"],"latest_commit_sha":null,"homepage":"https://npmjs.com/package/jetemit","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/behnammodi.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":"2018-09-23T14:44:44.000Z","updated_at":"2025-02-11T21:34:16.000Z","dependencies_parsed_at":"2023-02-06T12:30:33.195Z","dependency_job_id":null,"html_url":"https://github.com/behnammodi/jetemit","commit_stats":null,"previous_names":["uxitten/jetemit"],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/behnammodi/jetemit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/behnammodi%2Fjetemit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/behnammodi%2Fjetemit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/behnammodi%2Fjetemit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/behnammodi%2Fjetemit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/behnammodi","download_url":"https://codeload.github.com/behnammodi/jetemit/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/behnammodi%2Fjetemit/sbom","scorecard":{"id":230554,"data":{"date":"2025-08-11","repo":{"name":"github.com/behnammodi/jetemit","commit":"d565874ddd7871789481ef59928a8c2598388ff1"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.2,"checks":[{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","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":2,"reason":"Found 3/15 approved changesets -- score normalized to 2","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":"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":"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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/.yaml:1","Info: no jobLevel write permissions found"],"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":"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":"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":"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":"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":"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":"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"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 13 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"}},{"name":"Vulnerabilities","score":3,"reason":"7 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-17T04:46:00.058Z","repository_id":39853077,"created_at":"2025-08-17T04:46:00.058Z","updated_at":"2025-08-17T04:46:00.058Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273094132,"owners_count":25044439,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-01T02:00:09.058Z","response_time":120,"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":["events","javascript","listener","react"],"created_at":"2024-10-13T17:39:46.528Z","updated_at":"2025-09-01T08:14:19.838Z","avatar_url":"https://github.com/behnammodi.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![NPM](https://nodei.co/npm/jetemit.png)](https://nodei.co/npm/jetemit/)\n\n\u003ca href=\"https://www.npmjs.com/package/jetemit\"\u003e\n  \u003cimg src=\"https://img.shields.io/npm/v/jetemit.svg\" alt=\"Version\"\u003e\n\u003c/a\u003e\n\n\u003ca href=\"https://bundlephobia.com/result?p=jetemit\"\u003e\n\u003cimg src=\"https://badgen.net/bundlephobia/minzip/jetemit\" alt=\"Minzipped size\"\u003e\n\u003c/a\u003e\n\n\u003ca href=\"https://www.npmjs.com/package/jetemit\"\u003e\n  \u003cimg src=\"https://badgen.net/npm/dt/jetemit\" alt=\"Downloads\"\u003e\n\u003c/a\u003e\n\n\u003ca href=\"https://www.npmjs.com/package/jetemit\"\u003e\n  \u003cimg src=\"https://img.shields.io/npm/l/jetemit.svg\" alt=\"License\"\u003e\n\u003c/a\u003e\n\nAn event manager very simple\n\n## Compatibility\n\n| All browser | Backend (Nodejs) | Mobile (React Native) |\n| ----------- | ---------------- | --------------------- |\n| ✅          | ✅               | ✅                    |\n\nCompatibility with all javascript project\n\n## Install\n\n```npm\nnpm install jetemit\n```\n\n## Import\n\n```javascript\nconst { on, emit } = require(\"jetemit\");\n//or\nimport { on, emit } from \"jetemit\";\n```\n\n# Use\n\n## Call\n\n```javascript\nimport { emit } from \"jetemit\";\n\n/**\n * emit(name, value);\n * name is string\n * value any\n */\nemit(\"TIME\", \"2018-12-01 12:30\");\n```\n\n## Listener\n\n```javascript\nimport { on } from \"jetemit\";\n\n/**\n * on(name,function)\n * name is string\n */\non(\"TIME\", time =\u003e {\n  console.log(time);\n});\n```\n\n```javascript\nimport { once } from \"jetemit\";\n\n/**\n * Like on but run one time\n */\nonce(\"TIME\", time =\u003e {\n  console.log(time);\n});\n```\n\n## Unsubscribe listener\n\n```javascript\nimport { on } from \"jetemit\";\n\n/**\n * on return unsubscribe function\n */\nconst unsubscribe = on(\"TIME\", time =\u003e {\n  console.log(time);\n});\n\nunsubscribe();\n```\n\n## Using unsubscribeOf function\n\n```javascript\nimport { unsubscribeOf } from \"jetemit\";\n\n/**\n * Unsubscribe all subscribed functions for TIME\n */\nunsubscribeOf(\"TIME\");\n```\n\n## or\n\n```javascript\n\n/**\n * Unsubscribe a Function which subscribed for TIME\n */\nunsubscribeOf(\"TIME\", timeFunction);\n```\n\n## Refund from all listener\n\nPlease see this sample:\n\n```javascript\n// file a.js\nimport { on } from \"jetemit\";\n\non(\"CACHE_STSTEM_HEALTH\", () =\u003e {\n  return { state: \"OK\", id: \"CACHE_SYSTEM_1\" };\n});\n```\n```javascript\n// file b.jd\nimport { on } from \"jetemit\";\n\non(\"CACHE_STSTEM_HEALTH\", () =\u003e {\n  return { state: \"OK\", id: \"CACHE_SYSTEM_2\" };\n});\n```\n```javascript\n// file c.js\nimport { on, emit } from \"jetemit\";\n\nconst status = emit(\"CACHE_STSTEM_HEALTH\");\nconsole.log(status);\n/*\n[\n  { state: \"OK\", id: \"CACHE_SYSTEM_1\" },\n  { state: \"OK\", id: \"CACHE_SYSTEM_2\" }\n]\n*/\n```\n\n## Donate\nBTC: `1NV1sjQnXwuyHgxQ8G5eWprhxsD5A8yN6r`","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbehnammodi%2Fjetemit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbehnammodi%2Fjetemit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbehnammodi%2Fjetemit/lists"}