Cater Hero

First Node Module: Pseudio

October 28th 2012

I just published my first node.js module, I named it pseudio because it strips pseudo classes and elements off of CSS selectors, and the word pseudo sounds like sussudio.

Check out the npm module page, or find it on github. If you’re wondering why anyone would ever need something like this, the answer is they probably wont. However, I am going to be using it to strip any pseudo (class|element) from css selectors so I can enhance the css-slap-chop module. I’m adding @media query support to the module, and during this process I came across the need to strip out pseudo elements so I can see if a selector is being utilized on a page or not.

blog comments powered by Disqus