1.0.7 • Published 10 years ago

jsonscssevaluator v1.0.7

Weekly downloads
1
License
ISC
Repository
-
Last release
10 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

10 years ago

1.0.6

10 years ago

1.0.5

10 years ago

1.0.4

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago