classnames-melt

1.1.1 • Public • Published

Description

A tool to generate a object which key-value is a string of class names based on given config.

input

{
  hello:{
   world: ['&', 'test1', '&-test2',{
     child: ['&'],
     test: true,
   },]
  }
}

output

 {
  "hello": {
    "_world": " hello-world test1 hello-world-test2",
    "world": {
      "_child": " hello-world-child",
      "_test": " hello-world-test",
    }
  }
}

Readme

Keywords

Package Sidebar

Install

npm i classnames-melt

Weekly Downloads

0

Version

1.1.1

License

ISC

Unpacked Size

3.76 kB

Total Files

5

Last publish

Collaborators

  • talkbear