{"id":19970200,"url":"https://github.com/webdeveric/craco-plugin-inspect-config","last_synced_at":"2025-07-09T07:03:09.656Z","repository":{"id":66148864,"uuid":"369591657","full_name":"webdeveric/craco-plugin-inspect-config","owner":"webdeveric","description":"Inspect your configuration objects","archived":false,"fork":false,"pushed_at":"2022-01-22T22:40:31.000Z","size":1312,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-11T21:11:40.289Z","etag":null,"topics":["craco","craco-plugin","create-react-app"],"latest_commit_sha":null,"homepage":"","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/webdeveric.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":"2021-05-21T16:18:15.000Z","updated_at":"2022-01-22T22:40:35.000Z","dependencies_parsed_at":"2023-02-20T18:45:49.476Z","dependency_job_id":null,"html_url":"https://github.com/webdeveric/craco-plugin-inspect-config","commit_stats":{"total_commits":6,"total_committers":1,"mean_commits":6.0,"dds":0.0,"last_synced_commit":"5dc19b0579b1b6c6fbd49b758be2ff3999822029"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/webdeveric/craco-plugin-inspect-config","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdeveric%2Fcraco-plugin-inspect-config","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdeveric%2Fcraco-plugin-inspect-config/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdeveric%2Fcraco-plugin-inspect-config/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdeveric%2Fcraco-plugin-inspect-config/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webdeveric","download_url":"https://codeload.github.com/webdeveric/craco-plugin-inspect-config/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdeveric%2Fcraco-plugin-inspect-config/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261358692,"owners_count":23146674,"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":["craco","craco-plugin","create-react-app"],"created_at":"2024-11-13T02:53:30.749Z","updated_at":"2025-07-09T07:03:09.625Z","avatar_url":"https://github.com/webdeveric.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `craco-plugin-inspect-config`\n\nInspect your Craco, webpack, dev server, and Jest configs then write the output to a text file in the `outputDir`.\n\n## Install\n\n```shell\nnpm install craco-plugin-inspect-config -D\n```\n\n## Usage\n\nAdd the following to your `craco.config.js` file.\n\n:warning: The plugin is not enabled by default. You must turn it on when you want to use it.\n\n```js\nconst { inspectConfigPlugin } = require('craco-plugin-inspect-config');\n\nmodule.exports = {\n  // ...\n  plugins: [\n    // ... put it last\n    {\n      plugin: inspectConfigPlugin,\n      options: {\n        enabled: true,\n      },\n    },\n  ],\n  // ...\n};\n```\n\n## Options\n\nThis plugin accepts the options from [`util.inspect()`](https://nodejs.org/api/util.html#util_util_inspect_object_options) and the following:\n\n```\n{\n  enabled: boolean;\n  outputDir: string | ((pluginOptions) =\u003e string);\n  stringify: (config, inspectOptions) =\u003e string;\n  getFilename: (name) =\u003e string;\n}\n```\n\nIf you provide your own `stringify`, also provide `getFilename` so you can customize the extension.\n\nExample:\n\n```js\nconst { inspectConfigPlugin } = require('craco-plugin-inspect-config');\n\nmodule.exports = {\n  plugins: [\n    {\n      plugin: inspectConfigPlugin,\n      options: {\n        enabled: true,\n        stringify: config =\u003e JSON.stringify(config, null, 2),\n        getFilename: name =\u003e `${name}.json`,\n      },\n    },\n  ],\n};\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebdeveric%2Fcraco-plugin-inspect-config","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebdeveric%2Fcraco-plugin-inspect-config","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebdeveric%2Fcraco-plugin-inspect-config/lists"}