{"id":13808398,"url":"https://github.com/embarq/safe-pipe","last_synced_at":"2025-04-19T13:48:49.176Z","repository":{"id":16465206,"uuid":"79994941","full_name":"embarq/safe-pipe","owner":"embarq","description":"Angular pipe for sanitizing your unsafe content","archived":false,"fork":false,"pushed_at":"2024-03-29T17:57:47.000Z","size":1272,"stargazers_count":18,"open_issues_count":3,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-10-11T14:23:27.802Z","etag":null,"topics":["angular","angular-cli","angular9","safe","sanitize","typescript"],"latest_commit_sha":null,"homepage":"https://stackblitz.com/edit/safe-pipe-examples","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/embarq.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":"2017-01-25T08:09:44.000Z","updated_at":"2024-07-02T07:23:46.000Z","dependencies_parsed_at":"2024-08-04T01:10:08.152Z","dependency_job_id":"4deacdfd-d8f1-4776-a393-9da7c5627eb3","html_url":"https://github.com/embarq/safe-pipe","commit_stats":{"total_commits":71,"total_committers":5,"mean_commits":14.2,"dds":0.323943661971831,"last_synced_commit":"be80c224c08724492fe912ed0d26e5564707c006"},"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/embarq%2Fsafe-pipe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/embarq%2Fsafe-pipe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/embarq%2Fsafe-pipe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/embarq%2Fsafe-pipe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/embarq","download_url":"https://codeload.github.com/embarq/safe-pipe/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249591667,"owners_count":21296418,"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":["angular","angular-cli","angular9","safe","sanitize","typescript"],"created_at":"2024-08-04T01:01:41.823Z","updated_at":"2025-04-19T13:48:49.159Z","avatar_url":"https://github.com/embarq.png","language":"TypeScript","readme":"# SafePipe\n\nResolve your safe content with Angular SafePipe ([Demo](https://stackblitz.com/edit/safe-pipe-examples-v3))\n\n[![NPM](https://nodei.co/npm/safe-pipe.png?downloads=true)](https://nodei.co/npm/safe-pipe/)\n\n## Compatibility\n\nThis package is compatible with angular \u003e=17.\n\nFor angular \u003e=13 use [safe-pipe@2.0.5-0](https://www.npmjs.com/package/safe-pipe/v/2.0.5-0).\n\nFor angular \u003c13 use [safe-pipe@1.0.4](https://www.npmjs.com/package/safe-pipe/v/1.0.4)\n\n## Installation\n\n1. Install the package via `npm install safe-pipe` or `yarn add safe-pipe`\n2. Add `SafePipe` standalone to `Component.imports`.\n\nE.g. \n```ts\n@Component({\n  standalone: true,\n  imports: [ SafePipe ]\n})\nexport class MyComponent { }\n```\n\n## Usage\n\nThe `SafePipe` pipe accepts a value and sanitization type. \n\n```html\n\u003celem [prop]=\"value | safe: sanitizationType\"\u003e\u003c/elem\u003e\n```\n\nYou can sanitize any resource type supported by [DomSanitizer](https://angular.io/api/platform-browser/DomSanitizer).\n\nSupported sanitization types:\n\n- `'html'` - uses `DomSanitizer.bypassSecurityTrustHtml` [(docs)](https://angular.io/api/platform-browser/DomSanitizer#bypassSecurityTrustHtml)\n- `'style'` - uses `DomSanitizer.bypassSecurityTrustStyle` [(docs)](https://angular.io/api/platform-browser/DomSanitizer#bypasssecuritytruststyle)\n- `'script'` - uses `DomSanitizer.bypassSecurityTrustScript` [(docs)](https://angular.io/api/platform-browser/DomSanitizer#bypasssecuritytrustscript)\n- `'url'` - uses `DomSanitizer.bypassSecurityTrustUrl` [(docs)](https://angular.io/api/platform-browser/DomSanitizer#bypasssecuritytrusturl)\n- `'resourceUrl'` - uses `DomSanitizer.bypassSecurityTrustResourceUrl` [(docs)](https://angular.io/api/platform-browser/DomSanitizer#bypasssecuritytrustresourceurl)\n\n[🔗 Full usage example](https://stackblitz.com/edit/safe-pipe-examples-v3).\n\nHere're the previous package's version examples:\n- [Demo v2](https://stackblitz.com/edit/safe-pipe-examples-v2)\n- [Demo v1](https://stackblitz.com/edit/safe-pipe-examples)\n\n## Development\n\nThis library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 9.0.7.\n\n### Code scaffolding\n\nRun `ng generate component component-name --project safe-pipe` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project safe-pipe`.\n\u003e Note: Don't forget to add `--project safe-pipe` or else it will be added to the default project in your `angular.json` file. \n\n### Build\n\nRun `ng build safe-pipe` to build the project. The build artifacts will be stored in the `dist/` directory.\n\n### Publishing\n\nAfter building your library with `ng build safe-pipe`, go to the dist folder `cd dist/safe-pipe` and run `npm publish`.\n\n### Running unit tests\n\nRun `ng test safe-pipe` to execute the unit tests via [Karma](https://karma-runner.github.io).\n\n### Further help\n\nTo get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).\n","funding_links":[],"categories":["Third Party Components"],"sub_categories":["Pipes"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fembarq%2Fsafe-pipe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fembarq%2Fsafe-pipe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fembarq%2Fsafe-pipe/lists"}