]> git.r.bdr.sh - rbdr/dotfiles/blob
1cb8d127796d8bf754349e4505e2477102408e33
[rbdr/dotfiles] /
1 'use strict';
2
3 var replace = String.prototype.replace
4 , re = /([A-Z])/g;
5
6 module.exports = function () {
7 var str = replace.call(this, re, "-$1").toLowerCase();
8 if (str[0] === '-') str = str.slice(1);
9 return str;
10 };