1.0.7 • Published 8 years ago

jsonscssevaluator v1.0.7

Weekly downloads
1
License
ISC
Repository
-
Last release
8 years ago

jsonscssevaluator

This utility parses a json object and evaluate some of its keys from scss to css strings. The array / object that have to be parsed is the result of the bootstrap less parser, applied on a file.scss. This file.scss should contain some scss variable names and values

npm install --save jsonscssevaluator

Usage

var objectParserModule = require('jsonscssevaluator');
...
var objectParser = new objectParserModule();
//jsonArr - the json array that have to be parsed.
//varsToUpdate - an object with the name of the variables that have to be updated. The valut must be scss strings
objectParser.updateObject( jsonArr, varsToUpdate, function(err) {
    if(err) {
        //handle the error here
    } else {
        console.log('All good.');
    }
});

License

ISC

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago