{"id":24989973,"url":"https://github.com/yacodes/posthtml-remove-duplicates","last_synced_at":"2025-03-29T12:15:43.785Z","repository":{"id":57339133,"uuid":"59570533","full_name":"yacodes/posthtml-remove-duplicates","owner":"yacodes","description":"Remove duplicate tags from html","archived":false,"fork":false,"pushed_at":"2016-06-29T16:37:53.000Z","size":8,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-04T13:04:06.570Z","etag":null,"topics":[],"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/yacodes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-05-24T12:18:46.000Z","updated_at":"2023-03-05T00:12:22.000Z","dependencies_parsed_at":"2022-08-28T07:11:03.147Z","dependency_job_id":null,"html_url":"https://github.com/yacodes/posthtml-remove-duplicates","commit_stats":null,"previous_names":["canvaskisa/posthtml-remove-duplicates"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yacodes%2Fposthtml-remove-duplicates","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yacodes%2Fposthtml-remove-duplicates/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yacodes%2Fposthtml-remove-duplicates/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yacodes%2Fposthtml-remove-duplicates/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yacodes","download_url":"https://codeload.github.com/yacodes/posthtml-remove-duplicates/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246180922,"owners_count":20736460,"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":[],"created_at":"2025-02-04T13:04:11.787Z","updated_at":"2025-03-29T12:15:43.766Z","avatar_url":"https://github.com/yacodes.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Posthtml-remove-duplicates \u003cimg align=\"right\" width=\"220\" height=\"200\" title=\"PostHTML logo\" src=\"http://posthtml.github.io/posthtml/logo.svg\"\u003e\n\n[![NPM version](http://img.shields.io/npm/v/posthtml-remove-duplicates.svg)](https://www.npmjs.org/package/posthtml-remove-duplicates)\n[![Travis Build Status](https://travis-ci.org/canvaskisa/posthtml-remove-duplicates.svg)](https://travis-ci.org/canvaskisa/posthtml-remove-duplicates)\n[![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/sindresorhus/xo)\n\n## Installation\n```console\n$ npm i --save posthtml-remove-duplicates\n```\n\n## Usage\n```html\n\u003c!-- index.html --\u003e\n\u003chtml\u003e\n\u003cbody\u003e\n  \u003cstyle\u003e.a {color: black;}\u003c/style\u003e\n  \u003cstyle\u003e.a {color: black;}\u003c/style\u003e\n\u003c/body\u003e\n\u003c/html\u003e\n```\n\n```js\n/* index.js */\nvar fs = require('fs');\nvar posthtml = require('posthtml');\n\nposthtml()\n  .use(require('posthtml-remove-duplicates')('style'))\n  .process(fs.readFileSync('index.html', 'utf8'))\n  .then(function(result) {\n    return result; \n\n    /**\n     * \u003chtml\u003e\n     *  \u003cbody\u003e\n     *    \u003cstyle\u003e.a {color: black;}\u003c/style\u003e\n     *  \u003c/body\u003e\n     * \u003c/html\u003e\n     */\n  });\n```\n\n## Api\n`selector: string`: Selector to match html elements, passed to [posthtml-match-helper](https://github.com/rasmusfl0e/posthtml-match-helper).\n\n## License\nMIT © [Aleksandr Yakunichev](https://github.com/canvaskisa)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyacodes%2Fposthtml-remove-duplicates","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyacodes%2Fposthtml-remove-duplicates","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyacodes%2Fposthtml-remove-duplicates/lists"}