css-uncomment

1.0.0 • Public • Published

css-uncomment.js

Remove CSS comments from a string

⚙️ Installation

npm i css-uncomment

CDN Links:

📖 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);

Support me on Patreon - Check out my socials

Package Sidebar

Install

npm i css-uncomment

Weekly Downloads

4

Version

1.0.0

License

MIT

Unpacked Size

1.64 kB

Total Files

4

Last publish

Collaborators

  • axoraxdev