rework-walk

Recursively walk through all rules and keyframes

npm install rework-walk
3 downloads in the last day
166 downloads in the last week
858 downloads in the last month

rework-walk

Recursively walk through all rules and keyframes

example

// prefix all selectors
walk(style, function(rule, node) {
  if (!rule.selectors) return rule;
  rule.selectors = rule.selectors.map(function(selector) {
    return str + ' ' + selector;
  });
});

credits

rework-visit

license

MIT

npm loves you