aboutsummaryrefslogtreecommitdiffstats
path: root/vnfmarket/src/main/webapp/vnfmarket/node_modules/right-align/index.js
blob: ad54f5f1c25b4b92a99a343b1638ecbcf95a1b05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/*!
 * right-align <https://github.com/jonschlinkert/right-align>
 *
 * Copyright (c) 2015, Jon Schlinkert.
 * Licensed under the MIT License.
 */

'use strict';

var align = require('align-text');

module.exports = function rightAlign(val) {
  return align(val, function (len, longest) {
    return longest - len;
  });
};