0.1.0 • Published 9 years ago

obj-sass v0.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

obj-sass

convert Object to scss/sass variable String.

based on gulp-json-sass

Install

$ npm install obj-sass

Usage

var objSass = require('obj-sass');
var options = {};
var sass = objSass(options);

options

almost same options with gulp-json-sass. but obj is added and ignoreJsonErrors is deleted.

see gulp-json-sass

obj

Type: Object Default: {}
the object will be converted to scss/sass variable string.

objSass({
  obj: {
    key: 'value',
    obj: {
        key: 0
    },
    array: [1, 2, 3]
  }
});

// output
// $key: value;
// $obj-key: 0;
// $array-0: 1;
// $array-1: 2;
// $array-2: 3;
//

License

MIT