Source: apc-abstract-heir/lib/string/index.js

/**
 * String module.
 * @namespace lib.string
 * @author Taka Okunishi
 *
 */

var prototype = require('./_prototype.js');
/**
 * Define an object property getter to access prototype property.
 * @private
 */
function getPrototypeProperty (key) {
    return {
        enumerable: true,
        get: function () {
            return prototype[key];
        }
    };
}

// Export prototype properties with lazy loading.
Object.defineProperties(exports, {
    _patterns: getPrototypeProperty('_patterns'),
    camelize: getPrototypeProperty('camelize'),
    capitalize: getPrototypeProperty('capitalize'),
    decapitalize: getPrototypeProperty('decapitalize'),
    isString: getPrototypeProperty('isString'),
    sprintf: getPrototypeProperty('sprintf'),
    toHankaku: getPrototypeProperty('toHankaku'),
    toHiragana: getPrototypeProperty('toHiragana'),
    toKatakana: getPrototypeProperty('toKatakana'),
    toZenkaku: getPrototypeProperty('toZenkaku'),
    underscorize: getPrototypeProperty('underscorize')

});