{"id":28253762,"url":"https://github.com/mustafaer/ngx-dynamic-search","last_synced_at":"2026-01-04T13:12:50.820Z","repository":{"id":162056385,"uuid":"636608053","full_name":"mustafaer/ngx-dynamic-search","owner":"mustafaer","description":"Angular dynamic search pipe","archived":false,"fork":false,"pushed_at":"2025-07-20T12:14:02.000Z","size":953,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"development","last_synced_at":"2025-10-06T01:59:50.626Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/ngx-dynamic-search","language":"TypeScript","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/mustafaer.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-05T08:31:11.000Z","updated_at":"2025-07-20T12:14:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"9344a34a-acb9-45ae-8018-687545b58ffa","html_url":"https://github.com/mustafaer/ngx-dynamic-search","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/mustafaer/ngx-dynamic-search","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mustafaer%2Fngx-dynamic-search","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mustafaer%2Fngx-dynamic-search/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mustafaer%2Fngx-dynamic-search/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mustafaer%2Fngx-dynamic-search/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mustafaer","download_url":"https://codeload.github.com/mustafaer/ngx-dynamic-search/tar.gz/refs/heads/development","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mustafaer%2Fngx-dynamic-search/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281493549,"owners_count":26511329,"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","status":"online","status_checked_at":"2025-10-28T02:00:06.022Z","response_time":60,"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":[],"created_at":"2025-05-19T17:21:46.863Z","updated_at":"2026-01-04T13:12:50.814Z","avatar_url":"https://github.com/mustafaer.png","language":"TypeScript","funding_links":[],"categories":["Third Party Components"],"sub_categories":["Pipes"],"readme":"# NGX DYNAMIC SEARCH\n\n[![npm version](https://img.shields.io/npm/v/ngx-dynamic-search.svg)](https://www.npmjs.com/package/ngx-dynamic-search)\n[![npm downloads](https://img.shields.io/npm/dm/ngx-dynamic-search.svg)](https://www.npmjs.com/package/ngx-dynamic-search)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\n**ngx-dynamic-search** is a high-performance, lightweight, and standalone Angular pipe designed for dynamic, deep search filtering across complex nested objects and arrays. It seamlessly integrates with modern Angular applications (Angular 14+), providing a robust solution for client-side filtering.\n\n## 🚀 Features\n\n*   **🔍 Deep Search**: Recursively searches through nested objects and arrays to find matches anywhere in your data structure.\n*   **⚡ High Performance**: Optimized for speed, ensuring smooth filtering even with large datasets.\n*   **🛡️ Type Safe**: Gracefully handles `null`, `undefined`, `Date` objects, and various primitive types without crashing.\n*   **🧩 Standalone**: Built as a standalone pipe, making it easy to import and use in any Angular component without `NgModule` boilerplate.\n*   **⚙️ Customizable**: Supports case-sensitive search and the ability to exclude specific properties from the search scope.\n\n## 📦 Installation\n\nInstall the library via npm:\n\n```bash\nnpm install ngx-dynamic-search\n```\n\n## 🛠 Usage\n\n### 1. Import the Pipe\n\nSince `ngxDynamicSearch` is a standalone pipe, simply add it to the `imports` array of your standalone component.\n\n```typescript\nimport { Component } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule } from '@angular/forms';\nimport { DynamicSearchPipe } from 'ngx-dynamic-search';\n\n@Component({\n  selector: 'app-root',\n  standalone: true,\n  imports: [CommonModule, FormsModule, DynamicSearchPipe], // Import here\n  templateUrl: './app.component.html',\n  styleUrls: ['./app.component.scss']\n})\nexport class AppComponent {\n  searchValue = '';\n  \n  items = [\n    {\n      company: 'Alfreds Futterkiste',\n      contact: 'Maria Anders',\n      country: 'Germany',\n      details: { sector: 'Food', employees: 50 }\n    },\n    {\n      company: 'Centro comercial Moctezuma',\n      contact: 'Francisco Chang',\n      country: 'Mexico',\n      details: { sector: 'Retail', employees: 120 }\n    },\n    // ... more items\n  ];\n}\n```\n\n### 2. Use in Template\n\nApply the pipe to your `*ngFor` loop.\n\n```html\n\u003cdiv class=\"search-container\"\u003e\n  \u003cinput type=\"text\" [(ngModel)]=\"searchValue\" placeholder=\"Search...\"\u003e\n  \n  \u003ctable\u003e\n    \u003ctr\u003e\n      \u003cth\u003eCompany\u003c/th\u003e\n      \u003cth\u003eContact\u003c/th\u003e\n      \u003cth\u003eCountry\u003c/th\u003e\n    \u003c/tr\u003e\n    \u003c!-- \n      Usage: items | ngxDynamicSearch : searchTerm : isCaseSensitive : excludedKeys\n    --\u003e\n    \u003ctr *ngFor=\"let item of items | ngxDynamicSearch: searchValue : false : ['id', 'secretField']\"\u003e\n      \u003ctd\u003e{{item.company}}\u003c/td\u003e\n      \u003ctd\u003e{{item.contact}}\u003c/td\u003e\n      \u003ctd\u003e{{item.country}}\u003c/td\u003e\n    \u003c/tr\u003e\n  \u003c/table\u003e\n\u003c/div\u003e\n```\n\n## 📚 API Reference\n\n### `ngxDynamicSearch` Pipe\n\n| Parameter | Type | Default | Description |\n| :--- | :--- | :--- | :--- |\n| `items` | `any[]` | - | The array of objects to filter. |\n| `term` | `string` | - | The search string to match against object properties. |\n| `isCaseSensitive` | `boolean` | `false` | (Optional) If `true`, performs a case-sensitive search. |\n| `excludes` | `string[]` | `[]` | (Optional) An array of property keys to ignore during the search. |\n\n## 🤝 Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request or open an issue on [GitHub](https://github.com/mustafaer/ngx-dynamic-search).\n\n## 📄 License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n---\n\u003cdiv align=\"center\"\u003e\n  Made with ❤️ by \u003ca href=\"https://github.com/mustafaer\"\u003eMustafa ER\u003c/a\u003e\n\u003c/div\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmustafaer%2Fngx-dynamic-search","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmustafaer%2Fngx-dynamic-search","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmustafaer%2Fngx-dynamic-search/lists"}