How to use the compose-function.center function in compose-function

To help you get started, we’ve selected a few compose-function examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github stoeffel / underscore.string.fp / index.js View on Github external
S.slugify          = require('./slugify');
S.surround         = require('./surround');
S.quote            = require('./quote');
S.unquote          = require('./unquote');
S.repeat           = require('./repeat');
S.naturalCmp       = require('./naturalCmp');
S.levenshtein      = require('./levenshtein');
S.toBoolean        = require('./toBoolean');
S.exports          = require('./exports');
S.escapeRegExp     = require('./escapeRegExp');

// Aliases
S.strip     = S.trim;
S.lstrip    = S.ltrim;
S.rstrip    = S.rtrim;
S.center    = S.lrpad;
S.rjust     = S.lpad;
S.ljust     = S.rpad;
S.contains  = S.include;
S.q         = S.quote;
S.toBool    = S.toBoolean;
S.camelcase = S.camelize;

module.exports = S;