JSPM

rework-walk

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 261
  • Score
    100M100P100Q87543F
  • License MIT

Recursively walk through all rules and keyframes

Package Exports

  • rework-walk

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (rework-walk) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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