0.1.1 • Published 7 years ago

css2sass v0.1.1

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

css2sass

convert css file to sass file

what it does

css2sass is a easy way to convert css file to sass file. For example, it can convert

.container {
    display: block;
    width: 100px;
    height: 100px;   
}

to

.container
  display: block
  width: 100px
  height: 100px

how to use

var css2sass = require('css2sass')
var path = '/path/to/your/css/file/'
var targetPath = 'path/to/your/target/sass/file'
css2sass(path, targetPath)

note

the little function convert css file to sass file by regexp, and it can't find grammer error, so you shoule promise the css grammer is legal.