import S from 'string';

/**
 * @param {string} name
 * @returns {string}
 */
const slugify = function slugify(name) {
  const slug = name.replace(/[^\w\s]/g, '').toLowerCase();
  return S(slug).camelize().s;
};
export default slugify;