{"id":15764208,"url":"https://github.com/devjiwonchoi/duplicheck","last_synced_at":"2025-03-31T10:19:42.323Z","repository":{"id":163412081,"uuid":"637692789","full_name":"devjiwonchoi/duplicheck","owner":"devjiwonchoi","description":"Retrieve duplicates from strings, numbers, arrays, or objects.","archived":false,"fork":false,"pushed_at":"2023-07-13T18:38:38.000Z","size":88,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-11T12:05:18.861Z","etag":null,"topics":["duplicate","duplicates"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/duplicheck","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/devjiwonchoi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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}},"created_at":"2023-05-08T08:01:40.000Z","updated_at":"2023-07-19T06:05:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"2aaaca0a-cf9c-4ce2-9d93-a603c6a7ef5f","html_url":"https://github.com/devjiwonchoi/duplicheck","commit_stats":{"total_commits":12,"total_committers":2,"mean_commits":6.0,"dds":0.08333333333333337,"last_synced_commit":"1eb816ed05c0001b0a70e717b26731f9a149bfd6"},"previous_names":["devjiwonchoi/duplicheck","dev-jiwonchoi/duplicheck"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devjiwonchoi%2Fduplicheck","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devjiwonchoi%2Fduplicheck/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devjiwonchoi%2Fduplicheck/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devjiwonchoi%2Fduplicheck/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devjiwonchoi","download_url":"https://codeload.github.com/devjiwonchoi/duplicheck/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246450478,"owners_count":20779421,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["duplicate","duplicates"],"created_at":"2024-10-04T12:01:57.011Z","updated_at":"2025-03-31T10:19:42.297Z","avatar_url":"https://github.com/devjiwonchoi.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# duplicheck\n\nRetrieve duplicates from strings, numbers, arrays, or objects.\n\n## Installation\n\n```bash\nnpm install duplicheck\n```\n\n## Real World Use Case\n\n#### String\n\n```ts\nimport dc from 'duplicheck'\n\nconst userAPI = getUserAPI() // 'https://example.com/api/v1/users'\nconst projectAPI = getProjectAPI() // 'https://example.com/api/v1/projects'\n\nconst baseAPI = dc(userAPI, projectAPI) // 'https://example.com/api/v1/'\n```\n\n#### Array\n\n```ts\nimport dc from 'duplicheck'\n\nconst userArray = [\n  { name: 'John Doe', age: 20 },\n  { name: 'Jane Doe', age: 21 },\n  { name: 'Jiwon Choi', age: 5 },\n]\n\nconst authorizedUserArray = [\n  { name: 'John Doe', age: 20 },\n  { name: 'John Cena', age: 21 },\n]\n\n// Output: [{ name: 'John Doe', age: 20 }]\nconst validatedUserArray = dc(userArray, authorizedUserArray)\n```\n\n#### Object\n\n```ts\nimport dc from 'duplicheck'\nimport { PageProps, LayoutProps } from './types'\n\n// PageProps\n// {\n//   path: string,\n//   children: React.ReactNode\n// }\n\n// LayoutProps\n// {\n//   title: string,\n//   description: string,\n//   path: string,\n//   children: React.ReactNode\n// }\n\nconst commonProps = dc(ButtonProps, InputProps)\n\n// Output: { path: string, children: React.ReactNode }\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevjiwonchoi%2Fduplicheck","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevjiwonchoi%2Fduplicheck","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevjiwonchoi%2Fduplicheck/lists"}