Blame view

node_modules/bower/lib/templates/helpers/rpad.js 333 Bytes
2dda2e10   Administrator   generator ignore
1
2
3
4
5
6
7
8
9
10
11
12
  var mout = require('mout');
  
  function rpad(Handlebars) {
      Handlebars.registerHelper('rpad', function (context) {
          var hash = context.hash;
          var minLength = parseInt(hash.minLength, 10);
          var chr = hash.char;
          return mout.string.rpad(context.fn(this), minLength, chr);
      });
  }
  
  module.exports = rpad;