Convert a CSS style rule to a string of text
npm install stringify-css-ruleConvert a CSS rule object to a string of text with JavaScript in the browser environment.
When working in the browser environment with HTML and XML, the DOM can be stringified into text using things like innerHTML, outerHTML, and XMLSerializer, but no equivalent functions exist for converting a CSS rule found in CSSOM into a string. That's what this module provides, and it only works in the browser environment.
This software is distributed as an ES module and should work in all modern browsers (including Chrome/Safari/Edge/Firefox).
``html
``