css-uncomment
v1.0.0
Published
Remove CSS comments from a string
Downloads
13
Maintainers
Readme
⚙️ Installation
npm i css-uncomment
CDN Links:
- https://cdn.jsdelivr.net/npm/[email protected]/css-uncomment.js
- https://www.unpkg.com/[email protected]/css-uncomment.js
📖 Usage
◎ Import
// ES6
import cssUncomment from "css-uncomment";
// commonjs
const cssUncomment = require("css-uncomment");
◎ Example
const string = cssUncomment(`
/* start of my very cool css styling */
div {
color: red; /* changes color to red */
}
`);
console.log(string);