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

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

WBOY
WBOYOriginal
2016-06-24 11:52:55836browse

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.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn