{"id":19493720,"url":"https://github.com/abdullahceylan/gatsby-plugin-remove-console","last_synced_at":"2025-04-25T20:31:27.076Z","repository":{"id":52934372,"uuid":"168884006","full_name":"abdullahceylan/gatsby-plugin-remove-console","owner":"abdullahceylan","description":"A plugin that removes all console.* calls from Gatsby's production builds.","archived":false,"fork":false,"pushed_at":"2021-04-13T09:21:02.000Z","size":7,"stargazers_count":11,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-17T06:56:04.815Z","etag":null,"topics":["babel","babel-plugin","console-log","gatsby","gatsby-plugin","remove-console"],"latest_commit_sha":null,"homepage":"https://www.gatsbyjs.org/packages/gatsby-plugin-remove-console","language":"JavaScript","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/abdullahceylan.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-02-02T22:12:29.000Z","updated_at":"2023-05-12T16:53:47.000Z","dependencies_parsed_at":"2022-09-01T04:31:10.276Z","dependency_job_id":null,"html_url":"https://github.com/abdullahceylan/gatsby-plugin-remove-console","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdullahceylan%2Fgatsby-plugin-remove-console","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdullahceylan%2Fgatsby-plugin-remove-console/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdullahceylan%2Fgatsby-plugin-remove-console/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdullahceylan%2Fgatsby-plugin-remove-console/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abdullahceylan","download_url":"https://codeload.github.com/abdullahceylan/gatsby-plugin-remove-console/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250890420,"owners_count":21503491,"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":["babel","babel-plugin","console-log","gatsby","gatsby-plugin","remove-console"],"created_at":"2024-11-10T21:27:04.223Z","updated_at":"2025-04-25T20:31:26.785Z","avatar_url":"https://github.com/abdullahceylan.png","language":"JavaScript","readme":"# gatsby-plugin-remove-console\n\n[![NPM](https://img.shields.io/npm/v/gatsby-plugin-remove-console.svg?colorB=brightgreen)](https://www.npmjs.com/package/gatsby-plugin-remove-console) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)\n![npm](https://img.shields.io/npm/dw/gatsby-plugin-remove-console.svg?colorB=brightgreen)\n\nA plugin that adds support to remove all `console.*` calls from Gatsby's production builds using `babel-plugin-transform-remove-console`.\n\n## Example\n\n**In**\n\n```javascript\nconsole.log('foo');\nconsole.error('bar');\n```\n\n**Out**\n\n```javascript\n```\n\n## Getting started\n\n### Install the plugin\n\n```sh\nnpm install gatsby-plugin-remove-console \u0026\u0026 npm install babel-plugin-transform-remove-console --save-dev\n```\n\nor\n\n```sh\nyarn add gatsby-plugin-remove-console \u0026\u0026 yarn add babel-plugin-transform-remove-console --dev\n```\n\n### Usage\nSpecify the plugin in your `gatsby-config.js`. Here's an example:\n\n```javascript\n// without options\nmodule.exports = {\n  plugins: [\n    'gatsby-plugin-remove-console'\n  ],\n};\n```\n\n```javascript\n// with options\nmodule.exports = {\n  plugins: [\n    {\n      resolve: 'gatsby-plugin-remove-console',\n      options: {\n        exclude: ['error', 'warn'], // \u003c- will be removed all console calls except these\n      }\n    }\n  ]\n};\n```\n\n### Options\n\n`exclude` - An array of console methods to exclude from removal.\n\n# License\n\nMIT, see [LICENSE.md](https://github.com/abdullahceylan/gatsby-plugin-remove-console/blob/master/LICENSE) for details.\n\n# Changelog\n\nSee [CHANGELOG.md](https://github.com/abdullahceylan/gatsby-plugin-remove-console/blob/master/CHANGELOG.md) for details.\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabdullahceylan%2Fgatsby-plugin-remove-console","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabdullahceylan%2Fgatsby-plugin-remove-console","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabdullahceylan%2Fgatsby-plugin-remove-console/lists"}