{"id":17132302,"url":"https://github.com/engcfraposo/nestjs-dataprotection","last_synced_at":"2025-09-04T06:42:10.101Z","repository":{"id":107274675,"uuid":"595721492","full_name":"engcfraposo/nestjs-dataprotection","owner":"engcfraposo","description":"O módulo de Proteção de Dados é responsável por ocultar informações pessoais sensíveis presentes em objetos de dados. É importante para garantir a privacidade dos usuários e cumprir regulamentações de proteção de dados. ","archived":false,"fork":false,"pushed_at":"2023-01-31T17:36:26.000Z","size":79,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-19T21:20:44.931Z","etag":null,"topics":["dataprotection","lgpd","nestjs"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/nestjs-dataprotection","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/engcfraposo.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":"2023-01-31T17:16:23.000Z","updated_at":"2023-09-12T00:36:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"0ad00775-e620-45d0-839c-c4ece0de7bc1","html_url":"https://github.com/engcfraposo/nestjs-dataprotection","commit_stats":{"total_commits":2,"total_committers":1,"mean_commits":2.0,"dds":0.0,"last_synced_commit":"bd89a29a7e7af95febbbe80f2d9bdd0615026c7b"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/engcfraposo/nestjs-dataprotection","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/engcfraposo%2Fnestjs-dataprotection","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/engcfraposo%2Fnestjs-dataprotection/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/engcfraposo%2Fnestjs-dataprotection/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/engcfraposo%2Fnestjs-dataprotection/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/engcfraposo","download_url":"https://codeload.github.com/engcfraposo/nestjs-dataprotection/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/engcfraposo%2Fnestjs-dataprotection/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273567291,"owners_count":25128630,"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-09-04T02:00:08.968Z","response_time":61,"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":["dataprotection","lgpd","nestjs"],"created_at":"2024-10-14T19:26:38.820Z","updated_at":"2025-09-04T06:42:10.060Z","avatar_url":"https://github.com/engcfraposo.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Data Protection Service\n\nEste módulo é uma solução simples para proteger dados pessoais ao mascará-los. Ele pode ser usado para mascarar qualquer propriedade que contenha informações pessoais, incluindo nomes.\n\n## Instalação\n\nPara instalar este módulo, basta executar o seguinte comando:\n\n```ssh\nnpm install nestjs-dataprotection\n```\n\n## Uso\n\nPara usar o ViaCepService precisamos importar o seguinte modulo\n\n\n```ts\nimport { DataprotectionService } from 'nestjs-dataprotection';\n\n```\n\nimporte o decorator Injectable do @nestjs/common:\n\n\n```ts\nimport { Injectable } from '@nestjs/common';\n\n```\n\ne use o  @Injectable() decorator no seu controller:\n\n\n```ts\n@Injectable()\nexport class MyController {\n  constructor(private readonly dataprotectionService: DataprotectionService) {}\n\n  async consultar(obj: object) {\n    return this.dataprotectionService.maskData(obj);\n  }\n}\n\n\n```\n\nvocê pode testaer o código importando da seguinte forma:\n\n\n\n```ts\n@Injectable()\nconst maskedData = this.dataprotectionService.maskData(obj);\nconsole.log(maskedData);\n\n```\n\n# Testes\n\nPara executar os testes deste módulo, basta executar o seguinte comando:\n\n```ssh\nnpm run test\n```\n\n# Licença\n\nEste módulo está disponível sob a licença MIT. Veja o arquivo LICENSE para mais informações.\n\n# Contribuição\n\nSinta-se livre para contribuir com melhorias no código e na documentação. Para isso, basta abrir uma issue ou fazer um pull request.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fengcfraposo%2Fnestjs-dataprotection","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fengcfraposo%2Fnestjs-dataprotection","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fengcfraposo%2Fnestjs-dataprotection/lists"}