html-css-transformer

0.0.5 • Public • Published

html-css-transformer

NPM version NPM downloads CircleCI codecov donate

Install

npm i html-css-transformer

Usage

const htmlCssTransformer = require('html-css-transformer')
htmlCssTransformer(/* input string */)

For example, input:

<div class="wrapper">
  <div class="sidebar"></div>
  <div class="content"></div>
</div>

Then the output will be:

.wrapper {
    .sidebar {
    }
    .content {
    }
}

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Author

html-css-transformer © ulivz, Released under the MIT License.
Authored and maintained by ulivz with help from contributors (list).

github.com/ulivz · GitHub @ulivz

Readme

Keywords

none

Package Sidebar

Install

npm i html-css-transformer

Weekly Downloads

1

Version

0.0.5

License

MIT

Last publish

Collaborators

  • toxichl