Sha256: 5e9d7b35cbabe058278e4c60f811bf3b91e490c332060568710ad7af429916d9
Contents?: true
Size: 346 Bytes
Versions: 6
Compression:
Stored size: 346 Bytes
Contents
/*! * center-align <https://github.com/jonschlinkert/center-align> * * Copycenter (c) 2015, Jon Schlinkert. * Licensed under the MIT License. */ 'use strict'; var align = require('align-text'); module.exports = function centerAlign(val) { return align(val, function (len, longest) { return Math.floor((longest - len) / 2); }); };
Version data entries
6 entries across 6 versions & 2 rubygems