2 * center-align <https://github.com/jonschlinkert/center-align>
4 * Copycenter (c) 2015, Jon Schlinkert.
5 * Licensed under the MIT License.
10 var utils = require('./utils');
12 module.exports = function centerAlign(val) {
13 return utils.align(val, function (len, longest) {
14 return Math.floor((longest - len) / 2);