0.0.5 • Published 7 years ago

stylus-bem-evaluator v0.0.5

Weekly downloads
2
License
ISC
Repository
github
Last release
7 years ago

stylus-bem-evaluator

About

replaces the / in /__child or /--mod with the first parent block selector

Installation

run npm i stylus-bem-evaluator in the terminal

How to use

var stylus = require('stylus'),
  str =
  `.parent 
    .block
      /__child
        color: blue`;

stylus(str)
  .use(require('stylus-bem-evaluator'))
  .render(function (err, css) {
    console.log(err || css);
    // .parent .block .block__child {
    //   color: #00f;
    // }
  });