{"id":24489117,"url":"https://github.com/kudashevs/remove-blocks","last_synced_at":"2026-02-05T20:32:19.854Z","repository":{"id":260639228,"uuid":"881943064","full_name":"kudashevs/remove-blocks","owner":"kudashevs","description":"A library that removes marked blocks from any type of code.","archived":false,"fork":false,"pushed_at":"2024-12-02T15:43:53.000Z","size":208,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-24T11:50:14.069Z","etag":null,"topics":["remove-code","remove-comments","remove-unwanted"],"latest_commit_sha":null,"homepage":"","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/kudashevs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","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":"2024-11-01T14:44:16.000Z","updated_at":"2025-01-11T10:54:40.000Z","dependencies_parsed_at":"2024-11-01T15:09:37.820Z","dependency_job_id":"8c9cd068-2baa-4fd0-a57e-0bb1945eee09","html_url":"https://github.com/kudashevs/remove-blocks","commit_stats":null,"previous_names":["kudashevs/remove-blocks"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/kudashevs/remove-blocks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kudashevs%2Fremove-blocks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kudashevs%2Fremove-blocks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kudashevs%2Fremove-blocks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kudashevs%2Fremove-blocks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kudashevs","download_url":"https://codeload.github.com/kudashevs/remove-blocks/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kudashevs%2Fremove-blocks/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29133396,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-05T19:36:52.185Z","status":"ssl_error","status_checked_at":"2026-02-05T19:35:40.941Z","response_time":65,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["remove-code","remove-comments","remove-unwanted"],"created_at":"2025-01-21T16:30:49.038Z","updated_at":"2026-02-05T20:32:19.829Z","avatar_url":"https://github.com/kudashevs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Remove Blocks ![test workflow](https://github.com/kudashevs/remove-blocks/actions/workflows/run-tests.yml/badge.svg)\n==========================\n\nThe `remove-blocks` is a library that removes marked blocks from any type of code.\n\n\n## Install\n\n```bash\n# NPM\nnpm install --save-dev remove-blocks\n# Yarn\nyarn add --dev remove-blocks\n```\n\n\n## Usage\n\nIt removes blocks of code marked with two paired tags. A pair of tags consists of a start tag and an end tag. The format\nof each tag is `prefix name:position suffix` (e.g. `/* debug:start */`). The name, prefix, and suffix are configurable.\n```js\n/* debug:start */ \nconsole.log('debug');\n/* debug:end */\n```\n\n**Note**: The blocks cannot overlap each other.\n\n\n## Options\n\n`options.skips` is an array of environments where the processing will be skipped.\n\n`options.blocks` is an array of blocks' representations. Each element of this array describes a unique pair of tags with\nname, prefix, suffix and optional replacement. These values are represented by an object with these properties or by a string:\n```\nname: 'devblock'             # a string defines a name for the start/end tags (unique) - mandatory\nprefix: '/*'                 # a string defines the beginning of a tag (non-empty string) - mandatory\nsuffix: '*/'                 # a string defines the end of a tag (can be an empty string) - mandatory\nreplacement: 'any'           # a string defines a substitution for a removed block - optional\n```\nWhen a pair of tags is represented by a string, this string will be used as a name for the start and end tag (e.g.\n`string:start` and `string:end`), and the default prefix and suffix are used (e.g. `/*` and `*/`).\n\n\n## License\n\nThe MIT License (MIT). Please see the [License file](LICENSE.md) for more information.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkudashevs%2Fremove-blocks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkudashevs%2Fremove-blocks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkudashevs%2Fremove-blocks/lists"}