html-autoprefixer
Advanced tools
Weekly downloads
Readme
Autoprefix all CSS inside an html page - CSS inside style tags and inside style attributes.
var prefixed = htmlAutoprefixer.process(htmlString);
npm install html-autoprefixer --save
You pass an html string to .process
and it returns the processed html.
var htmlAutoprefixer = require("html-autoprefixer");
var htmlString = "<html><head><style>:fullscreen a { transition: transform 1s; }</style></head><body><h1 style='font-feature-settings: \"liga\", \"dlig\";'>Hello</h1></body></html>";
var prefixed = htmlAutoprefixer.process(htmlString);
You can optionally pass cheerio options.
var htmlString = "<HTML></HTML>";
var prefixed = htmlAutoprefixer.process(htmlString, { lowerCaseTags: true } );
// <html></html>
Using Gulp? Use gulp-html-autoprefixer.
var gulp = require( "gulp" );
var htmlAutoprefixer = require( "gulp-html-autoprefixer" );
gulp.task( "html-autoprefix", function( ) {
return gulp.src( "./path/to/index-or-other.html" )
.pipe( htmlAutoprefixer( ) )
.pipe( gulp.dest( "dist" ) );
} );
git checkout -b my-new-feature
)git commit -am 'Added some feature'
)git push origin my-new-feature
)npm install
npm test
FAQs
Autoprefix all CSS inside an html page - CSS inside style tags and inside style attributes
The npm package html-autoprefixer receives a total of 516 weekly downloads. As such, html-autoprefixer popularity was classified as not popular.
We found that html-autoprefixer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.