UNPKG

configly

Version:

A developer-friendly lightweight replacement for the 'config' module that works with custom config directories and pluggable parsers

14 lines (12 loc) 285 B
// Public API module.exports = notEmpty; /** * Checks if string is not empty * * @param {mixed} value - string to check * @returns {boolean} - true is string is not empty, false otherwise */ function notEmpty(value) { return (value != null && value.toString().length > 0); }