How to use cssauron - 1 common examples

To help you get started, we’ve selected a few cssauron examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github TylorS / snabbdom-selector / src / language.js View on Github external
return vNode.text
}

LanguageSpecification.prototype.attr = function attributes(vNode, attr) {
  if (vNode.data) {
    const {attrs = {}, props = {}} = vNode.data
    if (attrs[attr]) {
      return attrs[attr]
    }
    if (props[attr]) {
      return props[attr]
    }
  }
}

const language = cssauron(new LanguageSpecification())

export default language

cssauron

create matching selectors from css for your very own nested object hierarchy

MIT
Latest version published 8 years ago

Package Health Score

65 / 100
Full package analysis

Popular cssauron functions