UNPKG

speechkit

Version:
13 lines (11 loc) 224 B
'use strict' module.exports = text => { return text .toString() .toLowerCase() .replace(/\s+/g, '-') .replace(/[^\w\-]+/g, '') .replace(/\-\-+/g, '-') .replace(/^-+/, '') .replace(/-+$/, '') }