{"id":24983649,"url":"https://github.com/posthtml/posthtml-remove-tags","last_synced_at":"2025-10-12T13:42:39.631Z","repository":{"id":57328861,"uuid":"65277661","full_name":"posthtml/posthtml-remove-tags","owner":"posthtml","description":"A posthtml plugin for removing tags","archived":false,"fork":false,"pushed_at":"2018-02-23T11:36:29.000Z","size":16,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-01T12:33:55.760Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/posthtml.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":"2016-08-09T08:31:43.000Z","updated_at":"2020-11-06T15:37:46.000Z","dependencies_parsed_at":"2022-08-29T10:00:20.042Z","dependency_job_id":null,"html_url":"https://github.com/posthtml/posthtml-remove-tags","commit_stats":null,"previous_names":["gitscrum/posthtml-remove-tags"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/posthtml/posthtml-remove-tags","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/posthtml%2Fposthtml-remove-tags","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/posthtml%2Fposthtml-remove-tags/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/posthtml%2Fposthtml-remove-tags/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/posthtml%2Fposthtml-remove-tags/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/posthtml","download_url":"https://codeload.github.com/posthtml/posthtml-remove-tags/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/posthtml%2Fposthtml-remove-tags/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279011456,"owners_count":26084947,"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","status":"online","status_checked_at":"2025-10-12T02:00:06.719Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-02-04T09:20:01.680Z","updated_at":"2025-10-12T13:42:39.616Z","avatar_url":"https://github.com/posthtml.png","language":"JavaScript","readme":"# posthtml-remove-tags\n\n\u003e A [posthtml](https://github.com/posthtml) A posthtml plugin for removing tags\n\n[![Travis Build Status](https://img.shields.io/travis/posthtml/posthtml-remove-tags.svg?style=flat-square\u0026label=unix)](https://travis-ci.org/GitScrum/posthtml-remove-tags)[![AppVeyor Build Status](https://img.shields.io/appveyor/ci/GitScrum/posthtml-remove-tags.svg?style=flat-square\u0026label=windows)](https://ci.appveyor.com/project/GitScrum/posthtml-remove-tags)[![node](https://img.shields.io/node/v/post-sequence.svg?maxAge=2592000\u0026style=flat-square)]()[![npm version](https://img.shields.io/npm/v/posthtml-remove-tags.svg?style=flat-square)](https://www.npmjs.com/package/posthtml-remove-tags)[![Dependency Status](https://david-dm.org/gitscrum/posthtml-remove-tags.svg?style=flat-square)](https://david-dm.org/gitscrum/posthtml-remove-tags)[![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg?style=flat-square)](https://github.com/sindresorhus/xo)[![Coveralls status](https://img.shields.io/coveralls/GitScrum/posthtml-remove-tags.svg?style=flat-square)](https://coveralls.io/r/GitScrum/posthtml-remove-tags)\n\n[![npm downloads](https://img.shields.io/npm/dm/posthtml-remove-tags.svg?style=flat-square)](https://www.npmjs.com/package/posthtml-remove-tags)[![npm](https://img.shields.io/npm/dt/posthtml-remove-tags.svg?style=flat-square)](https://www.npmjs.com/package/posthtml-remove-tags)[![Package Quality](http://npm.packagequality.com/shield/posthtml-remove-tags.svg?style=flat-square)](http://packagequality.com/#?package=posthtml-remove-tags)\n\n## Why?\nEssential for removing unwanted or tags do not pass validation\n\n## Install\n\n```bash\nnpm i -S posthtml posthtml-remove-tags\n```\n\n\u003e **Note:** This project is compatible with node v4+\n\n## Usage\n\n```js\nimport {readFileSync, writeFileSync} from 'fs';\nimport posthtml from 'posthtml';\nimport removeTags from 'posthtml-remove-tags';\n\nconst html = readFileSync('input.html', 'utf8');\n\nposthtml()\n    .use(removeTags({tags: ['style', 'script']}))\n    .process(html)\n    .then(result =\u003e {\n        writeFileSync('output.html', result.html);\n    });\n\n```\nReturns the html without the tags listed in option\n\n## Example\n\n#### input.html\n```html\n\u003c!DOCTYPE html\u003e\n\u003chead\u003e\u003cstyle\u003e\u003c/style\u003e\u003c/head\u003e\n```\n\n#### output.html\n```html\n\u003c!DOCTYPE html\u003e\n\u003chead\u003e\u003c/head\u003e\n```\n\n## Options\n\n#### `tags`\nType: `Array`  \nDefault: `[]`  \nDescription: *The list of tags to be deleted*  \n\n## LICENSE\n\n[MIT](license)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fposthtml%2Fposthtml-remove-tags","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fposthtml%2Fposthtml-remove-tags","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fposthtml%2Fposthtml-remove-tags/lists"}