{"id":20603354,"url":"https://github.com/metalsmith/remove","last_synced_at":"2025-06-30T19:08:37.607Z","repository":{"id":14771747,"uuid":"17493312","full_name":"metalsmith/remove","owner":"metalsmith","description":"A Metalsmith plugin to remove files from the build","archived":false,"fork":false,"pushed_at":"2024-11-04T20:19:22.000Z","size":2552,"stargazers_count":20,"open_issues_count":0,"forks_count":12,"subscribers_count":37,"default_branch":"main","last_synced_at":"2025-06-12T07:36:43.672Z","etag":null,"topics":["metalsmith","metalsmith-plugin","remove"],"latest_commit_sha":null,"homepage":"https://github.com/metalsmith/remove#readme","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/metalsmith.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-03-06T21:30:01.000Z","updated_at":"2024-11-04T20:19:26.000Z","dependencies_parsed_at":"2023-01-13T18:06:54.310Z","dependency_job_id":"d671fdbf-2633-4997-952c-06da3f41a09b","html_url":"https://github.com/metalsmith/remove","commit_stats":{"total_commits":50,"total_committers":9,"mean_commits":5.555555555555555,"dds":"0.43999999999999995","last_synced_commit":"107082ce3981eecf251cb9d60159bd111c459745"},"previous_names":["segmentio/metalsmith-ignore"],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/metalsmith/remove","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metalsmith%2Fremove","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metalsmith%2Fremove/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metalsmith%2Fremove/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metalsmith%2Fremove/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/metalsmith","download_url":"https://codeload.github.com/metalsmith/remove/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metalsmith%2Fremove/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259977469,"owners_count":22941112,"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":["metalsmith","metalsmith-plugin","remove"],"created_at":"2024-11-16T09:17:02.362Z","updated_at":"2025-06-30T19:08:37.570Z","avatar_url":"https://github.com/metalsmith.png","language":"JavaScript","readme":"# @metalsmith/remove\n\nA Metalsmith plugin to remove files from the build\n\n[![metalsmith: core plugin][metalsmith-badge]][metalsmith-url]\n[![npm: version][npm-badge]][npm-url]\n[![ci: build][ci-badge]][ci-url]\n[![code coverage][codecov-badge]][codecov-url]\n[![license: MIT][license-badge]][license-url]\n\nUse `@metalsmith/remove` to discard files from the build output after their metadata and contents have been read and used by plugins. While `Metalsmith#ignore` ignores the matched files completely, `@metalsmith/remove` _only_ removes them at the point the plugin is `use`'d.\n\n## Installation\n\nNPM:\n\n```bash\nnpm install @metalsmith/remove\n```\n\nYarn:\n\n```bash\nyarn add @metalsmith/remove\n```\n\n## Usage\n\nPass the plugin with options to `Metalsmith#use`:\n\n```js\nimport remove from '@metalsmith/remove'\n\nmetalsmith.use(remove('drafts/*')) // single pattern\nmetalsmith.use(remove(['drafts/*', 'unfinished/*'])) // multiple patterns\n```\n\n### Debug\n\nTo enable debug logs, set the `DEBUG` environment variable to `@metalsmith/remove*`:\n\n```js\nmetalsmith.env('DEBUG', '@metalsmith/remove*')\n```\n\nAlternatively you can set `DEBUG` to `@metalsmith/*` to debug all Metalsmith core plugins.\n\n### CLI Usage\n\nTo use this plugin with the Metalsmith CLI, add `@metalsmith/remove` to the `plugins` key in your `metalsmith.json` file:\n\n```json\n{\n  \"plugins\": [{ \"@metalsmith/remove\": \"drafts/*\" }]\n}\n```\n\nBut you can also pass an array of patterns to ignore:\n\n```json\n{\n  \"plugins\": [{ \"@metalsmith/remove\": [\"drafts/*\", \"unfinished/*\"] }]\n}\n```\n\n## License\n\n[MIT](LICENSE)\n\n[npm-badge]: https://img.shields.io/npm/v/@metalsmith/remove.svg\n[npm-url]: https://www.npmjs.com/package/@metalsmith/remove\n[ci-badge]: https://github.com/metalsmith/remove/actions/workflows/test.yml/badge.svg\n[ci-url]: https://github.com/metalsmith/remove/actions/workflows/test.yml\n[metalsmith-badge]: https://img.shields.io/badge/metalsmith-plugin-green.svg?longCache=true\n[metalsmith-url]: https://metalsmith.io\n[codecov-badge]: https://img.shields.io/coveralls/github/metalsmith/remove\n[codecov-url]: https://coveralls.io/github/metalsmith/remove\n[license-badge]: https://img.shields.io/github/license/metalsmith/remove\n[license-url]: LICENSE\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmetalsmith%2Fremove","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmetalsmith%2Fremove","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmetalsmith%2Fremove/lists"}