jsonscssevaluator

1.0.7 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i jsonscssevaluator

Weekly Downloads

1

Version

1.0.7

License

ISC

Last publish

Collaborators

  • marius.a