no-nest-css

1.0.0 • Public • Published

no-nest-css

Remove nesting from CSS

import { noNestCSS } from 'no-nest-css';

const result = noNestCSS(`
  div {
    & > p {
      color: red;
    }
    & > h1 {
      color: blue;
    }
  }
`);

Will result in result as

`
  div  > p  {  color: red;  }
  div  > h1  {  color: blue;  }
`

Readme

Keywords

none

Package Sidebar

Install

npm i no-nest-css

Weekly Downloads

1

Version

1.0.0

License

ISC

Unpacked Size

6.42 kB

Total Files

4

Last publish

Collaborators

  • tvquizphd