{"id":23789993,"url":"https://github.com/blackglory/extra-deduplicator","last_synced_at":"2026-05-12T23:33:24.109Z","repository":{"id":218153623,"uuid":"745741749","full_name":"BlackGlory/extra-deduplicator","owner":"BlackGlory","description":"🌿 A data deduplication library","archived":false,"fork":false,"pushed_at":"2026-02-11T06:02:52.000Z","size":198,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-02-11T13:38:58.820Z","etag":null,"topics":["deno","jsr-package","library","typescript"],"latest_commit_sha":null,"homepage":"https://jsr.io/@blackglory/deduplicator","language":"TypeScript","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/BlackGlory.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-20T02:21:20.000Z","updated_at":"2026-02-11T06:02:55.000Z","dependencies_parsed_at":"2024-01-20T03:30:36.996Z","dependency_job_id":"6061b717-81b9-4e9a-954d-7ba672b93994","html_url":"https://github.com/BlackGlory/extra-deduplicator","commit_stats":null,"previous_names":["blackglory/extra-deduplicator"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/BlackGlory/extra-deduplicator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlackGlory%2Fextra-deduplicator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlackGlory%2Fextra-deduplicator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlackGlory%2Fextra-deduplicator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlackGlory%2Fextra-deduplicator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BlackGlory","download_url":"https://codeload.github.com/BlackGlory/extra-deduplicator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlackGlory%2Fextra-deduplicator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32961783,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-12T23:30:32.555Z","status":"ssl_error","status_checked_at":"2026-05-12T23:30:18.191Z","response_time":102,"last_error":"SSL_read: 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":["deno","jsr-package","library","typescript"],"created_at":"2025-01-01T17:17:56.593Z","updated_at":"2026-05-12T23:33:24.104Z","avatar_url":"https://github.com/BlackGlory.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# extra-deduplicator\nA data deduplication library for Deno,\nwhich is designed for extracting new data.\n\n## Install\n```sh\ndeno add jsr:@blackglory/deduplicator\n```\n\n## Usage\n```ts\n#!/usr/bin/env -S deno run --allow-all\nimport { Deduplicator } from 'jsr:@blackglory/deduplicator'\n\nconst deduplicator = await Deduplicator.create({ filename: 'dedup.db' })\n\nconst records = ['record-1', 'record-2']\nconst newRecords = await deduplicator.addAndDidff(records)\n```\n\n## API\n```ts\ninterface IOptions\u003cT\u003e {\n  filename?: string\n\n  hash?: (value: T) =\u003e JSONValue\n\n  shrink?: {\n    target?: number\n    threshold?: number\n  }\n}\n\nclass Deduplicator\u003cT\u003e {\n  static create(options?: IOptions): Promise\u003cDeduplicator\u003cT\u003e\u003e\n\n  add(values: T[]): Promise\u003cvoid\u003e\n\n  diff(values: T[]): Promise\u003cT[]\u003e\n  diffLast(value: T): Promise\u003cboolean\u003e\n\n  addAndDiff(values: T[]): Promise\u003cT[]\u003e\n  addAndDiffLast(value: T): Promise\u003cboolean\u003e\n\n  close(): void\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblackglory%2Fextra-deduplicator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblackglory%2Fextra-deduplicator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblackglory%2Fextra-deduplicator/lists"}