{"id":16676633,"url":"https://github.com/princed/posthtml-remove-attributes","last_synced_at":"2025-04-09T20:34:12.239Z","repository":{"id":57328825,"uuid":"54215226","full_name":"princed/posthtml-remove-attributes","owner":"princed","description":"PostHTML plugin to remove attributes unconditionally or with content match","archived":false,"fork":false,"pushed_at":"2021-01-04T00:59:04.000Z","size":6,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-23T22:36:56.325Z","etag":null,"topics":["attributes","posthtml","posthtml-plugin"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/princed.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}},"created_at":"2016-03-18T16:18:19.000Z","updated_at":"2021-01-04T00:59:06.000Z","dependencies_parsed_at":"2022-09-07T16:31:37.590Z","dependency_job_id":null,"html_url":"https://github.com/princed/posthtml-remove-attributes","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/princed%2Fposthtml-remove-attributes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/princed%2Fposthtml-remove-attributes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/princed%2Fposthtml-remove-attributes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/princed%2Fposthtml-remove-attributes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/princed","download_url":"https://codeload.github.com/princed/posthtml-remove-attributes/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248107912,"owners_count":21049036,"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":["attributes","posthtml","posthtml-plugin"],"created_at":"2024-10-12T13:11:07.097Z","updated_at":"2025-04-09T20:34:12.208Z","avatar_url":"https://github.com/princed.png","language":"JavaScript","readme":"[posthtml](https://github.com/posthtml/posthtml)-remove-attributes\n==================\n\nPostHTML plugin to remove attributes unconditionally or with content match\n\n[![Dependency Status](https://img.shields.io/david/princed/posthtml-remove-attributes.svg?style=flat-square)](https://david-dm.org/princed/posthtml-remove-attributes) [![Greenkeeper badge](https://badges.greenkeeper.io/princed/posthtml-remove-attributes.svg)](https://greenkeeper.io/)\n [![Current version](https://img.shields.io/npm/v/posthtml-remove-attributes.svg?style=flat-square)](https://www.npmjs.com/package/posthtml-remove-attributes) [![Travis Build Status](https://img.shields.io/travis/princed/posthtml-remove-attributes.svg?style=flat-square)](https://travis-ci.org/princed/posthtml-remove-attributes)\n\nInstallation\n------------\n\nInstall the `posthtml-remove-attributes`:\n\n```sh\n$ npm install posthtml-remove-attributes --save\n```\n\nUsage\n-----\n\n```javascript\nvar posthtml = require('posthtml');\nvar removeAttributes = require('posthtml-remove-attributes');\n\nvar html = '\u003cdiv style=\"display: inline;\" class=\"wow\"\u003eOMG\u003c/div\u003e';\n\nposthtml([ \n  removeAttributes([  // The only non-array argument is also possible\n    'class', // match name\n    {name: 'style', value: /inline/} // match name and value\n  ])\n])\n    .process(html)\n    .then(function(result) {\n        console.log(result);\n    });\n\n// Yields:\n// \u003cdiv\u003eOMG\u003c/div\u003e\n```\n\nContribution guidelines\n--------------------------\n\nIn lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using `npm test`.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprinced%2Fposthtml-remove-attributes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprinced%2Fposthtml-remove-attributes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprinced%2Fposthtml-remove-attributes/lists"}