All Downloads are FREE. Search and download functionalities are using the official Maven repository.

node_modules.bower.lib.templates.helpers.rpad.js Maven / Gradle / Ivy

var mout = require('mout');

function rpad(Handlebars) {
    Handlebars.registerHelper('rpad', function (context) {
        var hash = context.hash;
        var length = parseInt(hash.length, 10);
        var chr = hash.char;

        return mout.string.rpad(context.fn(this), length, chr);
    });
}

module.exports = rpad;




© 2015 - 2024 Weber Informatics LLC | Privacy Policy