UNPKG

node-rigorous

Version:
14 lines (12 loc) 317 B
"use strict"; var helperFormatChecker = require('./h_format_checker'); module.exports = function () { return { validator: function validator(v) { return !helperFormatChecker.isNil(v); }, message: function message(props) { return "".concat(props.value, " should not be null"); } }; };