{"id":26891966,"url":"https://github.com/xiaoxiaojx/next-clear-console","last_synced_at":"2026-05-15T12:04:29.087Z","repository":{"id":57676196,"uuid":"486925376","full_name":"xiaoxiaojx/next-clear-console","owner":"xiaoxiaojx","description":"Clear console.log during production build in your Next.js project","archived":false,"fork":false,"pushed_at":"2022-04-29T10:12:03.000Z","size":1,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-20T09:13:51.664Z","etag":null,"topics":["browser","clear","console","console-log","next","nextjs","plugin"],"latest_commit_sha":null,"homepage":"","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/xiaoxiaojx.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}},"created_at":"2022-04-29T10:09:02.000Z","updated_at":"2022-10-23T09:40:27.000Z","dependencies_parsed_at":"2022-09-02T22:31:14.597Z","dependency_job_id":null,"html_url":"https://github.com/xiaoxiaojx/next-clear-console","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/xiaoxiaojx/next-clear-console","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiaoxiaojx%2Fnext-clear-console","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiaoxiaojx%2Fnext-clear-console/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiaoxiaojx%2Fnext-clear-console/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiaoxiaojx%2Fnext-clear-console/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xiaoxiaojx","download_url":"https://codeload.github.com/xiaoxiaojx/next-clear-console/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiaoxiaojx%2Fnext-clear-console/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33066133,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-15T11:35:32.926Z","status":"ssl_error","status_checked_at":"2026-05-15T11:35:31.362Z","response_time":103,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["browser","clear","console","console-log","next","nextjs","plugin"],"created_at":"2025-03-31T22:48:27.480Z","updated_at":"2026-05-15T12:04:29.041Z","avatar_url":"https://github.com/xiaoxiaojx.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Next.js + Clear Console.log\n\nClear console.log during production build in your Next.js project\n\n## Installation\n\n```\nnpm install --save next-clear-console\n```\n\nor\n\n```\nyarn add next-clear-console\n```\n\n### Usage\n\nYou can set the consoles to be cleared by using the pure_funcs field, This is to ensure that no logs are leaked from the user's browser console.\n\n```js\n// next.config.js\n\nconst withClearConsole = require(\"next-clear-console\")({\n  // pure_funcs: [\"console.log\", \"console.info\", \"console.warn\", \"console.error\"]\n  pure_funcs: [\"console.log\", \"console.info\", \"console.warn\"],\n});\n\nmodule.exports = withClearConsole({\n  webpack(config, options) {\n    return config;\n  },\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxiaoxiaojx%2Fnext-clear-console","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxiaoxiaojx%2Fnext-clear-console","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxiaoxiaojx%2Fnext-clear-console/lists"}