Sha256: cbc6d56eddd6fe52071520ec69b4f7a0662564f12bfed383b2eaaac9bb98aa26

Contents?: true

Size: 246 Bytes

Versions: 19

Compression:

Stored size: 246 Bytes

Contents

var capitalize = require('./capitalize');
var underscored = require('./underscored');
var trim = require('./trim');

module.exports = function humanize(str) {
  return capitalize(trim(underscored(str).replace(/_id$/, '').replace(/_/g, ' ')));
};

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
ela-4.1.6 node_modules/underscore.string/humanize.js
ela-4.1.5 node_modules/underscore.string/humanize.js
ela-4.1.4 node_modules/underscore.string/humanize.js
ela-4.1.3 node_modules/underscore.string/humanize.js
ela-4.1.2 node_modules/underscore.string/humanize.js
ela-4.1.1 node_modules/underscore.string/humanize.js
ela-4.1.0 node_modules/underscore.string/humanize.js
ela-4.0.0 node_modules/underscore.string/humanize.js
ela-3.4.3 node_modules/underscore.string/humanize.js
ela-3.4.2 node_modules/underscore.string/humanize.js
ela-3.4.0 node_modules/underscore.string/humanize.js
ela-3.3.1 node_modules/underscore.string/humanize.js
ela-3.3.0 node_modules/underscore.string/humanize.js
ela-3.2.0 node_modules/underscore.string/humanize.js
ela-3.1.1 node_modules/underscore.string/humanize.js
ela-3.1.0 node_modules/underscore.string/humanize.js
ela-3.0.0 node_modules/underscore.string/humanize.js
ela-2.0.0 node_modules/underscore.string/humanize.js
ela-1.1.0 node_modules/underscore.string/humanize.js