{"id":1604606,"name":"defined","ecosystem":"npm","description":"return the first argument that is `!== undefined`","homepage":"https://github.com/inspect-js/defined","licenses":"MIT","normalized_licenses":["MIT"],"repository_url":"https://github.com/inspect-js/defined","keywords_array":["undefined","short-circuit","||","or","//","defined-or"],"namespace":null,"versions_count":3,"first_release_published_at":"2012-11-26T04:53:26.402Z","latest_release_published_at":"2022-10-12T14:01:02.571Z","latest_release_number":"1.0.1","last_synced_at":"2026-10-05T00:02:28.427Z","created_at":"2022-04-09T11:28:42.849Z","updated_at":"2026-10-05T00:02:28.651Z","registry_url":"https://www.npmjs.com/package/defined","install_command":"npm install defined","documentation_url":null,"metadata":{"funding":{"url":"https://github.com/sponsors/ljharb"},"dist-tags":{"latest":"1.0.1"},"contentPolicy":null},"repo_metadata":{"id":65992641,"uuid":"548994813","full_name":"inspect-js/defined","owner":"inspect-js","description":null,"archived":false,"fork":false,"pushed_at":"2026-01-13T19:31:23.000Z","size":32,"stargazers_count":6,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-09-30T22:51:36.368Z","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/inspect-js.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":["ljharb"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":"npm/deep-equal","community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2022-10-10T14:05:52.000Z","updated_at":"2026-08-20T20:52:27.000Z","dependencies_parsed_at":"2023-04-24T17:00:57.653Z","dependency_job_id":null,"html_url":"https://github.com/inspect-js/defined","commit_stats":{"total_commits":28,"total_committers":3,"mean_commits":9.333333333333334,"dds":0.4642857142857143,"last_synced_commit":"3a3b31d8062cca688a6b6e8ee07a1644d6799421"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/inspect-js/defined","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inspect-js%2Fdefined","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inspect-js%2Fdefined/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inspect-js%2Fdefined/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inspect-js%2Fdefined/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/inspect-js","download_url":"https://codeload.github.com/inspect-js/defined/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inspect-js%2Fdefined/sbom","scorecard":{"id":489796,"data":{"date":"2025-08-11","repo":{"name":"github.com/inspect-js/defined","commit":"3a3b31d8062cca688a6b6e8ee07a1644d6799421"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.4,"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":"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/28 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":"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":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: third-party GitHubAction not pinned by hash: .github/workflows/node-aught.yml:7: update your workflow using https://app.stepsecurity.io/secureworkflow/inspect-js/defined/node-aught.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/node-pretest.yml:7: update your workflow using https://app.stepsecurity.io/secureworkflow/inspect-js/defined/node-pretest.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/node-tens.yml:7: update your workflow using https://app.stepsecurity.io/secureworkflow/inspect-js/defined/node-tens.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/rebase.yml:7: update your workflow using https://app.stepsecurity.io/secureworkflow/inspect-js/defined/rebase.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/require-allow-edits.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/inspect-js/defined/require-allow-edits.yml/main?enable=pin","Info:   0 out of   5 third-party 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":"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/node-aught.yml:1","Warn: no topLevel permission defined: .github/workflows/node-pretest.yml:1","Warn: no topLevel permission defined: .github/workflows/node-tens.yml:1","Warn: no topLevel permission defined: .github/workflows/rebase.yml:1","Warn: no topLevel permission defined: .github/workflows/require-allow-edits.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":"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":"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":-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":"Security-Policy","score":9,"reason":"security policy file detected","details":["Info: security policy file detected: github.com/inspect-js/.github/SECURITY.md:1","Info: Found linked content: github.com/inspect-js/.github/SECURITY.md:1","Warn: One or no descriptive hints of disclosure, vulnerability, and/or timelines in security policy","Info: Found text in security policy: github.com/inspect-js/.github/SECURITY.md:1"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}}]},"last_synced_at":"2025-08-19T18:46:52.588Z","repository_id":65992641,"created_at":"2025-08-19T18:46:52.588Z","updated_at":"2025-08-19T18:46:52.588Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":343072799,"owners_count":38021370,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-10-03T21:59:58.778Z","status":"online","status_checked_at":"2026-10-04T02:00:06.888Z","response_time":127,"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":"inspect-js","name":"Inspect JS","uuid":"54056128","kind":"organization","description":"JavaScript value inspection tools.","email":null,"website":null,"location":null,"twitter":null,"company":null,"icon_url":"https://avatars.githubusercontent.com/u/54056128?v=4","repositories_count":83,"last_synced_at":"2026-10-02T00:51:44.536Z","metadata":{"has_sponsors_listing":false,"funding":{"github":["ljharb"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":"npm/deep-equal","community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"html_url":"https://github.com/inspect-js","funding_links":["https://github.com/sponsors/ljharb","https://tidelift.com/funding/github/npm/deep-equal"],"total_stars":1651,"followers":54,"following":0,"created_at":"2022-11-02T16:19:14.654Z","updated_at":"2026-10-02T00:51:44.550Z","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/inspect-js","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/inspect-js/repositories"},"tags":[{"name":"v1.0.1","sha":"8613a02bb55958a035d1988113d4814e2928b293","kind":"tag","published_at":"2022-10-12T14:00:49.000Z","download_url":"https://codeload.github.com/inspect-js/defined/tar.gz/v1.0.1","html_url":"https://github.com/inspect-js/defined/releases/tag/v1.0.1","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/inspect-js/defined@v1.0.1","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inspect-js%2Fdefined/tags/v1.0.1","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inspect-js%2Fdefined/tags/v1.0.1/manifests"},{"name":"v1.0.0","sha":"3a46c81d39b5f94c0c17c47638939af2528520f3","kind":"tag","published_at":"2015-03-30T22:47:23.000Z","download_url":"https://codeload.github.com/inspect-js/defined/tar.gz/v1.0.0","html_url":"https://github.com/inspect-js/defined/releases/tag/v1.0.0","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/inspect-js/defined@v1.0.0","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inspect-js%2Fdefined/tags/v1.0.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inspect-js%2Fdefined/tags/v1.0.0/manifests"},{"name":"v0.0.0","sha":"fbf0d20d9cec86266ed06e8fe4f5b9927917a3c5","kind":"tag","published_at":"2012-11-26T04:43:40.000Z","download_url":"https://codeload.github.com/inspect-js/defined/tar.gz/v0.0.0","html_url":"https://github.com/inspect-js/defined/releases/tag/v0.0.0","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/inspect-js/defined@v0.0.0","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inspect-js%2Fdefined/tags/v0.0.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inspect-js%2Fdefined/tags/v0.0.0/manifests"}]},"repo_metadata_updated_at":"2026-10-05T00:02:28.651Z","dependent_packages_count":523,"downloads":21384581,"downloads_period":"last-month","dependent_repos_count":1619645,"rankings":{"downloads":0.06110960915651351,"dependent_repos_count":0.019855715136673505,"dependent_packages_count":0.11237549513086263,"stargazers_count":13.147654877285264,"forks_count":15.390391611804736,"docker_downloads_count":0.058837980729860184,"average":4.798370881540651},"purl":"pkg:npm/defined","advisories":[],"docker_usage_url":"https://docker.ecosyste.ms/usage/npm/defined","docker_dependents_count":7770,"docker_downloads_count":2319625448,"usage_url":"https://repos.ecosyste.ms/usage/npm/defined","dependent_repositories_url":"https://repos.ecosyste.ms/api/v1/usage/npm/defined/dependencies","status":null,"funding_links":["https://github.com/sponsors/ljharb","https://tidelift.com/funding/github/npm/deep-equal"],"critical":null,"issue_metadata":{"last_synced_at":"2026-10-03T23:32:09.998Z","issues_count":0,"pull_requests_count":1,"avg_time_to_close_issue":null,"avg_time_to_close_pull_request":20461.0,"issues_closed_count":0,"pull_requests_closed_count":1,"pull_request_authors_count":1,"issue_authors_count":0,"avg_comments_per_issue":null,"avg_comments_per_pull_request":1.0,"merged_pull_requests_count":0,"bot_issues_count":0,"bot_pull_requests_count":0,"past_year_issues_count":0,"past_year_pull_requests_count":1,"past_year_avg_time_to_close_issue":null,"past_year_avg_time_to_close_pull_request":20461.0,"past_year_issues_closed_count":0,"past_year_pull_requests_closed_count":1,"past_year_pull_request_authors_count":1,"past_year_issue_authors_count":0,"past_year_avg_comments_per_issue":null,"past_year_avg_comments_per_pull_request":1.0,"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/inspect-js%2Fdefined/issues","maintainers":[],"active_maintainers":[]},"versions_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/defined/versions","version_numbers_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/defined/version_numbers","latest_version_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/defined/latest_version","dependent_packages_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/defined/dependent_packages","related_packages_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/defined/related_packages","codemeta_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/defined/codemeta","maintainers":[{"uuid":"ljharb","login":"ljharb","name":null,"email":"ljharb@gmail.com","url":null,"packages_count":567,"html_url":"https://www.npmjs.com/~ljharb","role":null,"created_at":"2022-11-15T21:01:34.844Z","updated_at":"2022-11-15T21:01:34.844Z","packages_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/maintainers/ljharb/packages"}]}