Home > Article > Web Front-end > Because of business needs, I wrote a CSS parser using nodejs. Since it is a basic library, I want to open source it. I don’t know if anyone needs it. _html/css_WEB-ITnose
Generally speaking, htmlparser is used more frequently for parsing. It is already available in the node library and can be installed by npm install -g htmlparser2.
To implement security scanning on nodejs during this period, you need to parse html, css, and js. css mainly limits some absolute positioning, floating layers, and urls to prevent phishing or attacks. So I wrote a css parser.
I feel that these basic libraries should be made public, but I don’t know how many people have this need.