1.0.0 • Published 3 years ago

scss-simple-parser v1.0.0

Weekly downloads
2
License
MIT
Repository
-
Last release
3 years ago

scss-parser

parse scss code to an object and generate an object to scss code

Install

yarn add scss-parser
or
npm 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
//
//  }
//}
1.0.0

3 years ago