Sha256: 325bf48bc01e7ce3a0111fa3b185b0f41323be3c8eee7120610509f77ea97f5f

Contents?: true

Size: 260 Bytes

Versions: 19

Compression:

Stored size: 260 Bytes

Contents

var trim = require('./trim');
var dasherize = require('./dasherize');
var cleanDiacritics = require('./cleanDiacritics');

module.exports = function slugify(str) {
  return trim(dasherize(cleanDiacritics(str).replace(/[^\w\s-]/g, '-').toLowerCase()), '-');
};

Version data entries

19 entries across 19 versions & 1 rubygems

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