{"id":1856074,"name":"if-diff","ecosystem":"npm","description":"Alternative to Polymer's dom-if that allows comparing two properties rather than just binding to a single boolean property","homepage":"https://github.com/bahrus/if-diff#readme","licenses":"MIT","normalized_licenses":["MIT"],"repository_url":"https://github.com/bahrus/if-diff","keywords_array":["web-components","web-component","custom-elements","custom-element","bind","dom-bind","conditional-display"],"namespace":null,"versions_count":120,"first_release_published_at":"2017-11-26T18:02:47.767Z","latest_release_published_at":"2021-10-31T22:02:45.880Z","latest_release_number":"0.0.123","last_synced_at":"2026-07-16T07:31:39.974Z","created_at":"2022-04-09T17:29:38.528Z","updated_at":"2026-07-16T19:59:31.062Z","registry_url":"https://www.npmjs.com/package/if-diff","install_command":"npm install if-diff","documentation_url":null,"metadata":{"funding":null,"dist-tags":{"latest":"0.0.123"}},"repo_metadata":{"id":53586147,"uuid":"94634425","full_name":"bahrus/if-diff","owner":"bahrus","description":"Alternative to Polymer's dom-if that progressively compares two properties rather than just binding to a single boolean property","archived":false,"fork":false,"pushed_at":"2023-03-04T02:57:32.000Z","size":2640,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-25T13:41:14.580Z","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/bahrus.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-06-17T16:05:53.000Z","updated_at":"2022-04-29T13:06:12.000Z","dependencies_parsed_at":"2024-11-08T12:30:58.339Z","dependency_job_id":null,"html_url":"https://github.com/bahrus/if-diff","commit_stats":{"total_commits":375,"total_committers":2,"mean_commits":187.5,"dds":0.002666666666666706,"last_synced_commit":"6bacc2dab4d9b8c006ff1cf36f5db9d9db780c16"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/bahrus/if-diff","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bahrus%2Fif-diff","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bahrus%2Fif-diff/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bahrus%2Fif-diff/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bahrus%2Fif-diff/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bahrus","download_url":"https://codeload.github.com/bahrus/if-diff/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bahrus%2Fif-diff/sbom","scorecard":{"id":223663,"data":{"date":"2025-08-11","repo":{"name":"github.com/bahrus/if-diff","commit":"6bacc2dab4d9b8c006ff1cf36f5db9d9db780c16"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.5,"checks":[{"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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/CI.yml: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":"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":"Code-Review","score":0,"reason":"Found 0/30 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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/CI.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/bahrus/if-diff/CI.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/CI.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/bahrus/if-diff/CI.yml/master?enable=pin","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned"],"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":"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":"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":"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":"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"}},{"name":"Vulnerabilities","score":0,"reason":"14 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-r683-j2x4-v87g","Warn: Project is vulnerable to: GHSA-76c9-3jph-rj3q","Warn: Project is vulnerable to: GHSA-9wv6-86v2-598j","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-pq67-2wwv-3xjx","Warn: Project is vulnerable to: GHSA-8cj5-5rvv-wf4v","Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q"],"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-17T03:10:28.072Z","repository_id":53586147,"created_at":"2025-08-17T03:10:28.072Z","updated_at":"2025-08-17T03:10:28.072Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273510581,"owners_count":25118527,"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-03T02:00:09.631Z","response_time":76,"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"},"owner_record":{"login":"bahrus","name":"Bruce B. Anderson","uuid":"1449290","kind":"user","description":"","email":"","website":null,"location":null,"twitter":null,"company":null,"icon_url":"https://avatars.githubusercontent.com/u/1449290?u=3da5e7af991ba06abdbb34602b7339e7576d853d\u0026v=4","repositories_count":366,"last_synced_at":"2023-04-03T17:51:28.274Z","metadata":{"has_sponsors_listing":false},"html_url":"https://github.com/bahrus","funding_links":[],"total_stars":null,"followers":null,"following":null,"created_at":"2022-11-04T11:52:00.630Z","updated_at":"2023-04-03T17:51:29.789Z","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bahrus","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bahrus/repositories"},"tags":[{"name":"0.0.3","sha":"f96540cbc1896d96c4b4fa46429e8c94192d5c06","kind":"commit","published_at":"2017-06-22T03:11:24.000Z","download_url":"https://codeload.github.com/bahrus/if-diff/tar.gz/0.0.3","html_url":"https://github.com/bahrus/if-diff/releases/tag/0.0.3","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/bahrus/if-diff@0.0.3","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bahrus%2Fif-diff/tags/0.0.3","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bahrus%2Fif-diff/tags/0.0.3/manifests"},{"name":"0.0.2","sha":"e1ce3c3a039ee378377a86ec13c90fbd7ff5e80e","kind":"commit","published_at":"2017-06-19T21:41:47.000Z","download_url":"https://codeload.github.com/bahrus/if-diff/tar.gz/0.0.2","html_url":"https://github.com/bahrus/if-diff/releases/tag/0.0.2","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/bahrus/if-diff@0.0.2","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bahrus%2Fif-diff/tags/0.0.2","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bahrus%2Fif-diff/tags/0.0.2/manifests"},{"name":"0.0.1","sha":"fb9e9608f537448faa6fad302e70316deda3e209","kind":"commit","published_at":"2017-06-18T15:14:53.000Z","download_url":"https://codeload.github.com/bahrus/if-diff/tar.gz/0.0.1","html_url":"https://github.com/bahrus/if-diff/releases/tag/0.0.1","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/bahrus/if-diff@0.0.1","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bahrus%2Fif-diff/tags/0.0.1","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bahrus%2Fif-diff/tags/0.0.1/manifests"}]},"repo_metadata_updated_at":"2026-07-16T19:59:31.034Z","dependent_packages_count":14,"downloads":447,"downloads_period":"last-month","dependent_repos_count":13,"rankings":{"downloads":14.67096968458273,"dependent_repos_count":3.2944140561367323,"dependent_packages_count":1.5723214894030426,"stargazers_count":16.710498942137473,"forks_count":15.38802090050726,"docker_downloads_count":null,"average":10.327245014553448},"purl":"pkg:npm/if-diff","advisories":[],"docker_usage_url":"https://docker.ecosyste.ms/usage/npm/if-diff","docker_dependents_count":null,"docker_downloads_count":null,"usage_url":"https://repos.ecosyste.ms/usage/npm/if-diff","dependent_repositories_url":"https://repos.ecosyste.ms/api/v1/usage/npm/if-diff/dependencies","status":null,"funding_links":[],"critical":null,"issue_metadata":{"last_synced_at":"2025-08-10T12:50:13.362Z","issues_count":0,"pull_requests_count":4,"avg_time_to_close_issue":null,"avg_time_to_close_pull_request":7414845.0,"issues_closed_count":0,"pull_requests_closed_count":3,"pull_request_authors_count":1,"issue_authors_count":0,"avg_comments_per_issue":null,"avg_comments_per_pull_request":0.5,"merged_pull_requests_count":1,"bot_issues_count":0,"bot_pull_requests_count":4,"past_year_issues_count":0,"past_year_pull_requests_count":0,"past_year_avg_time_to_close_issue":null,"past_year_avg_time_to_close_pull_request":null,"past_year_issues_closed_count":0,"past_year_pull_requests_closed_count":0,"past_year_pull_request_authors_count":0,"past_year_issue_authors_count":0,"past_year_avg_comments_per_issue":null,"past_year_avg_comments_per_pull_request":null,"past_year_bot_issues_count":0,"past_year_bot_pull_requests_count":0,"past_year_merged_pull_requests_count":0,"issues_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/repositories/bahrus%2Fif-diff/issues","maintainers":[],"active_maintainers":[]},"versions_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/if-diff/versions","version_numbers_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/if-diff/version_numbers","latest_version_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/if-diff/latest_version","dependent_packages_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/if-diff/dependent_packages","related_packages_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/if-diff/related_packages","codemeta_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/if-diff/codemeta","maintainers":[{"uuid":"bahrus","login":"bahrus","name":null,"email":"anderson.bruce.b@gmail.com","url":null,"packages_count":508,"html_url":"https://www.npmjs.com/~bahrus","role":null,"created_at":"2022-11-12T19:10:50.026Z","updated_at":"2022-11-12T19:10:50.026Z","packages_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/maintainers/bahrus/packages"}]}