{"id":24373513,"url":"https://github.com/hugoalh/djb2a-es","last_synced_at":"2026-02-26T05:30:21.669Z","repository":{"id":272560740,"uuid":"917010653","full_name":"hugoalh/djb2a-es","owner":"hugoalh","description":"An ECMAScript module to get the non-cryptographic hash of the data with algorithm DJB2a.","archived":false,"fork":false,"pushed_at":"2025-10-20T12:08:36.000Z","size":70,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-29T05:02:42.587Z","etag":null,"topics":["djb2a","ecmascript","ecmascript-module","es","es-module","esm","esmodule","hash","javascript","js","ts","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hugoalh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":"CITATION.cff","codeowners":".github/CODEOWNERS","security":"SECURITY.md","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":"2025-01-15T07:20:14.000Z","updated_at":"2025-10-05T09:10:20.000Z","dependencies_parsed_at":"2025-01-15T09:25:11.396Z","dependency_job_id":"6cdbf735-bb81-4ea1-b186-729aaf4921b0","html_url":"https://github.com/hugoalh/djb2a-es","commit_stats":null,"previous_names":["hugoalh/djb2a-es"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/hugoalh/djb2a-es","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugoalh%2Fdjb2a-es","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugoalh%2Fdjb2a-es/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugoalh%2Fdjb2a-es/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugoalh%2Fdjb2a-es/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hugoalh","download_url":"https://codeload.github.com/hugoalh/djb2a-es/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugoalh%2Fdjb2a-es/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29849625,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-25T22:37:40.667Z","status":"online","status_checked_at":"2026-02-26T02:00:06.774Z","response_time":89,"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":["djb2a","ecmascript","ecmascript-module","es","es-module","esm","esmodule","hash","javascript","js","ts","typescript"],"created_at":"2025-01-19T05:11:40.051Z","updated_at":"2026-02-26T05:30:21.654Z","avatar_url":"https://github.com/hugoalh.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DJB2a (ES)\n\n[**⚖️** MIT](./LICENSE.md)\n\n[![GitHub: hugoalh/djb2a-es](https://img.shields.io/github/v/release/hugoalh/djb2a-es?label=hugoalh/djb2a-es\u0026labelColor=181717\u0026logo=github\u0026logoColor=ffffff\u0026sort=semver\u0026style=flat \"GitHub: hugoalh/djb2a-es\")](https://github.com/hugoalh/djb2a-es)\n[![JSR: @hugoalh/djb2a](https://img.shields.io/jsr/v/@hugoalh/djb2a?label=@hugoalh/djb2a\u0026labelColor=F7DF1E\u0026logo=jsr\u0026logoColor=000000\u0026style=flat \"JSR: @hugoalh/djb2a\")](https://jsr.io/@hugoalh/djb2a)\n[![NPM: @hugoalh/djb2a](https://img.shields.io/npm/v/@hugoalh/djb2a?label=@hugoalh/djb2a\u0026labelColor=CB3837\u0026logo=npm\u0026logoColor=ffffff\u0026style=flat \"NPM: @hugoalh/djb2a\")](https://www.npmjs.com/package/@hugoalh/djb2a)\n\nAn ECMAScript module to get the non-cryptographic hash of the data with algorithm DJB2a (32 bits).\n\n## 🎯 Targets\n\n| **Runtime \\\\ Source** | **GitHub Raw** | **JSR** | **NPM** |\n|:--|:-:|:-:|:-:|\n| **[Bun](https://bun.sh/)** \u003e= v1.1.0 | ❌ | ✔️ | ✔️ |\n| **[Deno](https://deno.land/)** \u003e= v2.1.0 | ✔️ | ✔️ | ✔️ |\n| **[NodeJS](https://nodejs.org/)** \u003e= v20.9.0 | ❌ | ✔️ | ✔️ |\n\n## 🛡️ Runtime Permissions\n\nThis does not request any runtime permission.\n\n## #️⃣ Sources\n\n- GitHub Raw\n  ```\n  https://raw.githubusercontent.com/hugoalh/djb2a-es/{Tag}/mod.ts\n  ```\n- JSR\n  ```\n  jsr:@hugoalh/djb2a[@{Tag}]\n  ```\n- NPM\n  ```\n  npm:@hugoalh/djb2a[@{Tag}]\n  ```\n\n\u003e [!NOTE]\n\u003e - It is recommended to include tag for immutability.\n\u003e - These are not part of the public APIs hence should not be used:\n\u003e   - Benchmark/Test file (e.g.: `example.bench.ts`, `example.test.ts`).\n\u003e   - Entrypoint name or path include any underscore prefix (e.g.: `_example.ts`, `foo/_example.ts`).\n\u003e   - Identifier/Namespace/Symbol include any underscore prefix (e.g.: `_example`, `Foo._example`).\n\n## ⤵️ Entrypoints\n\n| **Name** | **Path** | **Description** |\n|:--|:--|:--|\n| `.` | `./mod.ts` | Default. |\n\n## 🧩 APIs\n\n- ```ts\n  class DJB2a {\n    constructor(data?: DJB2aAcceptDataType);\n    get freezed(): boolean;\n    freeze(): this;\n    hash(): Uint8Array;\n    hashHex(): string;\n    update(data: DJB2aAcceptDataType): this;\n    updateFromStream(stream: ReadableStream\u003cDJB2aAcceptDataType\u003e): Promise\u003cthis\u003e;\n  }\n  ```\n- ```ts\n  type DJB2aAcceptDataType =\n    | string\n    | BigUint64Array\n    | Uint8Array\n    | Uint16Array\n    | Uint32Array;\n  ```\n\n\u003e [!NOTE]\n\u003e - For the full or prettier documentation, can visit via:\n\u003e   - [Deno CLI `deno doc`](https://docs.deno.com/runtime/reference/cli/doc/)\n\u003e   - [JSR](https://jsr.io/@hugoalh/djb2a)\n\n## ✍️ Examples\n\n- ```ts\n  new DJB2a(\"hello\").hashHex();\n  //=\u003e \"0A9CEDE7\"\n  ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhugoalh%2Fdjb2a-es","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhugoalh%2Fdjb2a-es","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhugoalh%2Fdjb2a-es/lists"}