posthtml-remove-duplicates
0.0.4 • Public • Published Posthtml-remove-duplicates ![PostHTML logo](http://posthtml.github.io/posthtml/logo.svg)
![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)
Installation
$ npm i --save posthtml-remove-duplicates
Usage
<html>
<body>
<style>.a {color: black;}</style>
<style>.a {color: black;}</style>
</body>
</html>
var fs = require('fs');
var posthtml = require('posthtml');
posthtml()
.use(require('posthtml-remove-duplicates')('style'))
.process(fs.readFileSync('index.html', 'utf8'))
.then(function(result) {
return result;
});
Api
selector: string
: Selector to match html elements, passed to posthtml-match-helper.
License
MIT © Aleksandr Yakunichev
Versions
Current Tags
- VersionDownloads (Last 7 Days)
- 0.0.4
117
Version History
Package Sidebar
Install
npm i posthtml-remove-duplicates
Weekly Downloads