Blame view

code/finance_web/node_modules/right-align/index.js 324 Bytes
a  
谢明辉 committed
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;
  });
};