scss-simple-parser
v1.0.0
Published
parse scss code to an object and generate an object to scss code
Downloads
3
Readme
scss-parser
parse scss code to an object and generate an object to scss code
Install
yarn add scss-parser
ornpm i -S scss-parser
Usage
import {parse, generate} from 'scss-parser'
const data = parse(`.aaa{width: 100px; .bbb{height: 0}}`)
const scss = generate(data, {space: ' '});
//.aaa {
// width: 100px
// .bbb {
// height: 0
//
// }
//}