Skip to content
A simple tool for converting bem-friendly HTML files into bemdecl.js declarations
JavaScript Ruby
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
bin
lib
.gitignore
README.md
package.json

README.md

html2bemdecl

A simple tool for converting bem-friendly HTML files into bemdecl.js declarations

Install

$ [sudo] npm install html2bemdecl [-g]

Usage

$ html2bemdecl --help

Usage: html2bemdecl [options]

Options:

  -h, --help               output usage information
  -V, --version            output the version number
  -i, --input <filename>   Input HTML file
  -o, --output <filename>  Output BEMDECL
  -enc, --encoding         Input file encoding [encoding]

You must specify paths to input and output files. That's all!

NOTE: bem-friendly HTML means that all your bem classes start with b- l- or i- prefixes.

Something went wrong with that request. Please try again.