{"id":20494329,"url":"https://github.com/voltra/ngx-gdpr-guard","last_synced_at":"2026-05-11T09:03:57.823Z","repository":{"id":190036542,"uuid":"681756274","full_name":"Voltra/ngx-gdpr-guard","owner":"Voltra","description":"Angular library to use gdpr-guard as efficiently and easily as possible ","archived":false,"fork":false,"pushed_at":"2024-07-06T12:54:17.000Z","size":9480,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-02T01:34:40.725Z","etag":null,"topics":["angular","angular-library","gdpr-guard","hacktoberfest"],"latest_commit_sha":null,"homepage":"","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/Voltra.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-08-22T17:34:17.000Z","updated_at":"2024-07-06T12:49:34.000Z","dependencies_parsed_at":"2024-07-06T13:56:33.037Z","dependency_job_id":"fd5ed45d-bb20-4939-a751-fc49b2fcc9c4","html_url":"https://github.com/Voltra/ngx-gdpr-guard","commit_stats":null,"previous_names":["voltra/ngx-gdpr-guard"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Voltra%2Fngx-gdpr-guard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Voltra%2Fngx-gdpr-guard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Voltra%2Fngx-gdpr-guard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Voltra%2Fngx-gdpr-guard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Voltra","download_url":"https://codeload.github.com/Voltra/ngx-gdpr-guard/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242075997,"owners_count":20068231,"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-library","gdpr-guard","hacktoberfest"],"created_at":"2024-11-15T17:39:08.118Z","updated_at":"2026-05-11T09:03:52.799Z","avatar_url":"https://github.com/Voltra.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ngx-gdpr-guard\n\n\u003ccenter\u003e\u003cimg src=\"https://github.com/Voltra/ngx-gdpr-guard/raw/master/ngx-gdpr-guard.png\" alt=\"Logo\" width=\"250px\"/\u003e\u003c/center\u003e\n\nAngular library to use [gdpr-guard](https://www.npmjs.com/package/gdpr-guard) as efficiently and easily as possible\n\n## Installation\n\n```bash\nnpm i -S ngx-gdpr-guard\n```\n\n## Setup\n\nYou'll need both a `GdprManagerFactory` and a `GdprSavior`.\n\n\u003e NOTE: The recommended gdpr savior library is [`gdpr-guard-local`](https://www.npmjs.com/package/gdpr-guard-local) which uses local storage by default, but can be customized to use anything.\n\nYou can use a very basic `GdprManagerFactory` using the `GdprManagerBuilder` as follows:\n\n```ts\nimport { GdprManagerBuilder, GdprManagerFactory } from \"gdpr-guard\";\n\nconst managerFactory: GdprManagerFactory = () =\u003e GdprManagerBuilder.make()\n\t/* [...] */\n\t.build();\n```\n\nThere's an injection token for both the factory and the savior:\n\n```ts\nimport { GDPR_MANAGER_FACTORY_TOKEN, GDPR_SAVIOR_TOKEN } from \"ngx-gdpr-guard\";\n\nconst providers = [\n\t{ provide: GDPR_MANAGER_FACTORY_TOKEN, /* [...] */ },\n\t{ provide: GDPR_SAVIOR_TOKEN, /* [...] */ },\n];\n```\n\nWith these providers in scope, you can inject the `NgxGdprGuardService`:\n\n```ts\nimport { NgModule } from \"@angular/core\";\nimport { NgxGdprGuardService } from \"ngx-gdpr-guard\";\n\n@NgModule({\n\tdeclarations: [],\n\timports: [],\n\texports: [],\n})\nexport class MyModule {\n\tconstructor(private ngxGdprGuard: NgxGdprGuardService) {\n\t}\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvoltra%2Fngx-gdpr-guard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvoltra%2Fngx-gdpr-guard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvoltra%2Fngx-gdpr-guard/lists"}