UNPKG

base-config-schema

Version:

Schema for the base-config plugin, used for normalizing config values before passing them to config.process().

15 lines (12 loc) 262 B
'use strict'; module.exports = function(app, options) { return function(val, key, config, schema) { if (typeof val === 'undefined') { return null; } if (typeof val === 'boolean') { val = { render: val }; } return val; }; };