lib/cssbeautify-cli.js
function isValid(name, value) {
    var tests = {
        indent: function (value) {
            return (/^(\s*|\d*)$/).test(value);
        },
        openbrace: function (value) {
            return (['end-of-line', 'separate-line']).indexOf(value) !== -1;
        },
        autosemicolon: function (value) {
            return typeof value === 'boolean';
        }
    };

    return Boolean(tests[name] && tests[name](value));
}
function isValid(name, value) {
    var tests = {
        indent: function (value) {
            return (/^(\s*|\d*)$/).test(value);
        },
        openbrace: function (value) {
            return (['end-of-line', 'separate-line']).indexOf(value) !== -1;
        },
        autosemicolon: function (value) {
            return typeof value === 'boolean';
        }
    };

    return Boolean(tests[name] && tests[name](value));
}
function isValid ( name , value ) { var tests = { indent : function ( value ) { return ( / ^(\s*|\d*)$ / ) . test ( value ) ; } , openbrace : function ( value ) { return ( [ 'end-of-line' , 'separate-line' ] ) . indexOf ( value ) !== - 1 ; } , autosemicolon : function ( value ) { return typeof value === 'boolean' ; } } ; return Boolean ( tests [ name ] && tests [ name ] ( value ) ) ; }
Checks parameter validity
@param  {string}  name
@param  {string}  value
@return {Boolean}
Checks parameter validity