stylus-bem-evaluator

0.0.5 • Public • Published

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;
    // }
  });

/stylus-bem-evaluator/

    Package Sidebar

    Install

    npm i stylus-bem-evaluator

    Weekly Downloads

    2

    Version

    0.0.5

    License

    ISC

    Last publish

    Collaborators

    • khalidhoffman