{"id":22799985,"url":"https://github.com/dadi/log-filter","last_synced_at":"2025-03-30T19:17:39.808Z","repository":{"id":57105406,"uuid":"139095080","full_name":"dadi/log-filter","owner":"dadi","description":"Filter sensitive parameters from log files","archived":false,"fork":false,"pushed_at":"2019-05-03T14:59:28.000Z","size":83,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-06T10:19:00.606Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/dadi.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-06-29T03:13:00.000Z","updated_at":"2019-05-03T14:59:27.000Z","dependencies_parsed_at":"2022-08-20T23:50:10.026Z","dependency_job_id":null,"html_url":"https://github.com/dadi/log-filter","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dadi%2Flog-filter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dadi%2Flog-filter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dadi%2Flog-filter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dadi%2Flog-filter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dadi","download_url":"https://codeload.github.com/dadi/log-filter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246365644,"owners_count":20765549,"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":[],"created_at":"2024-12-12T07:10:42.464Z","updated_at":"2025-03-30T19:17:39.494Z","avatar_url":"https://github.com/dadi.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Log Filter\n\n\u003e Filter sensitive parameters from log files\n\n[![npm (scoped)](https://img.shields.io/npm/v/@dadi/log-filter.svg?maxAge=10800\u0026style=flat-square)](https://www.npmjs.com/package/@dadi/log-filter)\n[![Coverage Status](https://coveralls.io/repos/github/dadi/log-filter/badge.svg?branch=master)](https://coveralls.io/github/dadi/log-filter?branch=master)\n[![Build Status](https://travis-ci.org/dadi/log-filter.svg?branch=master)](https://travis-ci.org/dadi/log-filter)\n[![JavaScript Style Guide](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](http://standardjs.com/)\n\n## Install\n\n```\nnpm i @dadi/log-filter\n```\n\n## Filter querystring parameters\n\n```js\nconst LogFilter = require('@dadi/log-filter')\n\nlet req = {\n  url: '/profile?username=ed\u0026password=octopus'\n}\n\nlet filter = ['password']\n\nlet logFilter = new LogFilter(req, filter)\nlet output = logFilter.filterPath()\n\n// produces /profile?username=ed\u0026password=%5BFILTERED%5D\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdadi%2Flog-filter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdadi%2Flog-filter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdadi%2Flog-filter/lists"}