{"id":19737772,"url":"https://github.com/softwareventures/dictionary-types","last_synced_at":"2026-01-25T13:05:50.797Z","repository":{"id":41092706,"uuid":"156379609","full_name":"softwareventures/dictionary-types","owner":"softwareventures","description":"Convenient type definitions for commonly used dictionary/map style objects in TypeScript.","archived":false,"fork":false,"pushed_at":"2026-01-19T17:05:21.000Z","size":1284,"stargazers_count":1,"open_issues_count":10,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-19T23:16:20.635Z","etag":null,"topics":["collections","dictionary","dictionary-types","hashmap","map","typescript"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/dictionary-types","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/softwareventures.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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}},"created_at":"2018-11-06T12:22:29.000Z","updated_at":"2024-01-12T18:07:39.000Z","dependencies_parsed_at":"2023-10-16T16:58:49.373Z","dependency_job_id":"e5a6989d-5fc7-4b70-93d8-f12aec341700","html_url":"https://github.com/softwareventures/dictionary-types","commit_stats":{"total_commits":341,"total_committers":6,"mean_commits":"56.833333333333336","dds":0.3401759530791789,"last_synced_commit":"8fe6eaa9c0307df2b4f43f7142c78355b61bec52"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/softwareventures/dictionary-types","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softwareventures%2Fdictionary-types","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softwareventures%2Fdictionary-types/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softwareventures%2Fdictionary-types/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softwareventures%2Fdictionary-types/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/softwareventures","download_url":"https://codeload.github.com/softwareventures/dictionary-types/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softwareventures%2Fdictionary-types/sbom","scorecard":{"id":836391,"data":{"date":"2025-08-11","repo":{"name":"github.com/softwareventures/dictionary-types","commit":"925be2b830aebf1da5948f4fcf26ffef91aa44f0"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.8,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/29 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":"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":"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":"Pinned-Dependencies","score":3,"reason":"dependency not pinned by hash detected -- score normalized to 3","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/softwareventures/dictionary-types/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/softwareventures/dictionary-types/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:45: update your workflow using https://app.stepsecurity.io/secureworkflow/softwareventures/dictionary-types/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:51: update your workflow using https://app.stepsecurity.io/secureworkflow/softwareventures/dictionary-types/ci.yml/main?enable=pin","Info:   2 out of   6 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":"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.md:0","Info: FSF or OSI recognized license: ISC License: LICENSE.md: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 'main'"],"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 1 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":1,"reason":"9 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-h5c3-5r3r-rr8q","Warn: Project is vulnerable to: GHSA-rmvr-2pp2-xj38","Warn: Project is vulnerable to: GHSA-xx4v-prfh-6cgc","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-f5x3-32g6-xq36","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6"],"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-23T19:09:42.599Z","repository_id":41092706,"created_at":"2025-08-23T19:09:42.599Z","updated_at":"2025-08-23T19:09:42.599Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28753412,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-25T10:25:12.305Z","status":"ssl_error","status_checked_at":"2026-01-25T10:25:11.933Z","response_time":113,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["collections","dictionary","dictionary-types","hashmap","map","typescript"],"created_at":"2024-11-12T01:12:19.044Z","updated_at":"2026-01-25T13:05:50.779Z","avatar_url":"https://github.com/softwareventures.png","language":null,"readme":"# Dictionary Types\n\nConvenient type definitions for commonly used dictionary/map style objects\nin TypeScript.\n\n## Deprecated\n\nSince TypeScript 2.1, TypeScript has a built-in `Record` type which renders\nthis package obsolete. Consider also using an ES6 `Map` instead.\n\n * Instead of `Dictionary\u003cT\u003e`, use `Record\u003cstring, T\u003e` or `Map\u003cstring, T\u003e`.\n * Instead of `Dictionary\u003cT, K\u003e`, use `Record\u003cK, T\u003e` or `Map\u003cK, T\u003e`.\n * Instead of `ReadonlyDictionary\u003cT\u003e`, use `Readonly\u003cRecord\u003cstring, T\u003e\u003e`\n   or `ReadonlyMap\u003cstring, T\u003e`.\n * Instead of `ReadonlyDictionary\u003cT, K\u003e`, use `Readonly\u003cRecord\u003cK, T\u003e\u003e`\n   or `ReadonlyMap\u003cK, T\u003e`.\n * Instead of `NumberMap\u003cT\u003e`, use `Record\u003cnumber, T\u003e` or `Map\u003cnumber, T\u003e`.\n * Instead of `ReadonlyNumberMap\u003cT\u003e`, use `Readonly\u003cRecord\u003cnumber, T\u003e\u003e`\n   or `ReadonlyMap\u003cnumber, T\u003e`.\n\n\n## Installation and usage\n\n```bash\nnpm install --save dictionary-types\n```\n\n```typescript\nimport {\n    Dictionary,\n    ReadonlyDictionary,\n    NumberMap,\n    ReadonlyNumberMap\n} from \"dictionary-types\";\n```\n\n\n## Dictionary\\\u003cT\u003e\n\nAn object containing elements of type `T`, keyed by `string`.\n\n```typescript\nconst scores: Dictionary\u003cnumber\u003e = {\n    \"Amelia\": 4,\n    \"Riley\": 7,\n    \"April\": 5\n};\n\nscores[\"Xander\"] = 3;\n```\n\n\n## Dictionary\\\u003cTValue, TKey\u003e\n\nAn object containing elements of type `TValue`, keyed by `TKey`.\n\n```typescript\nconst amelia = Symbol();\nconst riley = Symbol();\nconst april = Symbol();\nconst xander = Symbol();\n\ntype Participant = typeof amelia | typeof riley | typeof april | typeof xander;\n\nconst scores: Dictionary\u003cnumber, Participant\u003e = {\n    [amelia]: 4,\n    [riley]: 7,\n    [april]: 5\n};\n\nscores[xander] = 3;\n```\n\n\n## ReadonlyDictionary\\\u003cT\u003e\n\nA read-only object containing elements of type `T`, keyed by `string`.\n\n```typescript\nfunction winner(scores: ReadonlyDictionary\u003cnumber\u003e): string {\n    let winner = \"\";\n    let highScore = 0;\n\n    for (const name of Object.keys(scores)) {\n        if (scores[name] \u003e highScore) {\n            highScore = scores[name];\n            winner = name;\n        }\n    }\n\n    return name;\n}\n```\n\n\n## ReadonlyDictionary\\\u003cTValue, TKey\u003e\n\nA read-only object containing elements of type `TValue`, keyed by `TKey`.\n\n```typescript\nconst amelia = Symbol();\nconst riley = Symbol();\nconst april = Symbol();\nconst xander = Symbol();\n\ntype Participant = typeof amelia | typeof riley | typeof april | typeof xander;\n\nfunction winner(scores: ReadonlyDictionary\u003cnumber, Participant\u003e): Participant | null {\n    let winner: Participant | null = null;\n    let highScore = 0;\n    \n    for (const participant of [amelia, riley, april, xander]) {\n        if (scores[participant] \u003e highScore) {\n            highScore = scores[participant];\n            winner = participant;\n        }\n    }\n    \n    return winner;\n}\n```\n\n\n## NumberMap\\\u003cT\u003e\n\nAn object containing elements of type `T`, keyed by `number`.\n\n\n## ReadonlyNumberMap\\\u003cT\u003e\n\nA read-only object containing elements of type `T`, keyed by `number`.\n\n\n## Copyright\n\nSee [LICENSE.md](LICENSE.md).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoftwareventures%2Fdictionary-types","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoftwareventures%2Fdictionary-types","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoftwareventures%2Fdictionary-types/lists"}