{"id":2327516,"name":"safe-enum","ecosystem":"npm","description":"define safe enums - if you get a key wrong you get a descriptive error not undefined","homepage":"https://github.com/timruffles/safe-enum","licenses":"MIT","normalized_licenses":["MIT"],"repository_url":"https://github.com/timruffles/safe-enum","keywords_array":["enum","enums","constant","constants"],"namespace":null,"versions_count":3,"first_release_published_at":"2015-02-03T11:01:46.505Z","latest_release_published_at":"2015-02-03T11:03:44.253Z","latest_release_number":"1.0.2","last_synced_at":"2026-08-10T09:15:36.610Z","created_at":"2022-04-10T00:14:06.789Z","updated_at":"2026-08-10T09:18:58.567Z","registry_url":"https://www.npmjs.com/package/safe-enum","install_command":"npm install safe-enum","documentation_url":null,"metadata":{"funding":null,"dist-tags":{"latest":"1.0.2"},"contentPolicy":null},"repo_metadata":{"id":26780265,"uuid":"30238440","full_name":"timruffles/safe-enum","owner":"timruffles","description":null,"archived":false,"fork":false,"pushed_at":"2015-02-03T11:00:26.000Z","size":124,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-07-01T15:37:44.139Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/timruffles.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-02-03T10:57:11.000Z","updated_at":"2015-02-03T11:00:26.000Z","dependencies_parsed_at":"2022-07-31T12:18:06.553Z","dependency_job_id":null,"html_url":"https://github.com/timruffles/safe-enum","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/timruffles/safe-enum","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timruffles%2Fsafe-enum","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timruffles%2Fsafe-enum/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timruffles%2Fsafe-enum/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timruffles%2Fsafe-enum/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/timruffles","download_url":"https://codeload.github.com/timruffles/safe-enum/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timruffles%2Fsafe-enum/sbom","scorecard":{"id":886731,"data":{"date":"2025-08-11","repo":{"name":"github.com/timruffles/safe-enum","commit":"b6f97cce3baf4d670e9451fcc0a5afadb512c069"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"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":"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":"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":"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/4 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":"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":"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":"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":"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":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":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-24T10:17:30.018Z","repository_id":26780265,"created_at":"2025-08-24T10:17:30.018Z","updated_at":"2025-08-24T10:17:30.018Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":36482743,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-08-06T04:43:03.162Z","status":"online","status_checked_at":"2026-08-10T02:00:05.122Z","response_time":58,"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":"timruffles","name":"Tim Ruffles","uuid":"249800","kind":"user","description":"I'm an engineer at Poolside.ai, previously at Plaid and GitHub.","email":"","website":"https://timr.co","location":"UK","twitter":null,"company":"@poolsideai","icon_url":"https://avatars.githubusercontent.com/u/249800?u=c4301530eac0d5d317d2d6aa8774a756603f684b\u0026v=4","repositories_count":297,"last_synced_at":"2024-12-06T20:58:47.985Z","metadata":{"has_sponsors_listing":false},"html_url":"https://github.com/timruffles","funding_links":[],"total_stars":1006,"followers":306,"following":34,"created_at":"2022-11-02T22:32:44.964Z","updated_at":"2024-12-06T20:58:47.985Z","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/timruffles","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/timruffles/repositories"},"tags":[{"name":"1.0.0","sha":"34d1a0cae8c439addf89b19bba487f248403e1f7","kind":"commit","published_at":"2015-02-03T10:58:21.000Z","download_url":"https://codeload.github.com/timruffles/safe-enum/tar.gz/1.0.0","html_url":"https://github.com/timruffles/safe-enum/releases/tag/1.0.0","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/timruffles/safe-enum@1.0.0","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timruffles%2Fsafe-enum/tags/1.0.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timruffles%2Fsafe-enum/tags/1.0.0/manifests"}]},"repo_metadata_updated_at":"2026-08-10T09:18:58.567Z","dependent_packages_count":0,"downloads":13,"downloads_period":"last-month","dependent_repos_count":1,"rankings":{"downloads":39.03050606312104,"dependent_repos_count":10.295976646711454,"dependent_packages_count":51.836728746128266,"stargazers_count":20.915151912560955,"forks_count":15.382149371460885,"docker_downloads_count":null,"average":27.492102547996517},"purl":"pkg:npm/safe-enum","advisories":[],"docker_usage_url":"https://docker.ecosyste.ms/usage/npm/safe-enum","docker_dependents_count":null,"docker_downloads_count":null,"usage_url":"https://repos.ecosyste.ms/usage/npm/safe-enum","dependent_repositories_url":"https://repos.ecosyste.ms/api/v1/usage/npm/safe-enum/dependencies","status":null,"funding_links":[],"critical":null,"issue_metadata":{"last_synced_at":"2025-08-29T02:27:36.972Z","issues_count":0,"pull_requests_count":0,"avg_time_to_close_issue":null,"avg_time_to_close_pull_request":null,"issues_closed_count":0,"pull_requests_closed_count":0,"pull_request_authors_count":0,"issue_authors_count":0,"avg_comments_per_issue":null,"avg_comments_per_pull_request":null,"merged_pull_requests_count":0,"bot_issues_count":0,"bot_pull_requests_count":0,"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/timruffles%2Fsafe-enum/issues","maintainers":[],"active_maintainers":[]},"versions_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/safe-enum/versions","version_numbers_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/safe-enum/version_numbers","latest_version_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/safe-enum/latest_version","dependent_packages_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/safe-enum/dependent_packages","related_packages_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/safe-enum/related_packages","codemeta_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/safe-enum/codemeta","maintainers":[{"uuid":"timruffles","login":"timruffles","name":null,"email":"timruffles@googlemail.com","url":null,"packages_count":59,"html_url":"https://www.npmjs.com/~timruffles","role":null,"created_at":"2022-11-10T22:40:00.187Z","updated_at":"2022-11-10T22:40:00.187Z","packages_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/maintainers/timruffles/packages"}]}