to-slug-case

Convert a string to slug case.

to-slug-case

Convert a string to a slug case.

$ component install ianstormtaylor/to-slug-case
$ npm install to-slug-case
var slug = require('to-slug-case');
 
slug('camelCase');  // "camel-case" 
slug('space case'); // "snake-case" 
slug('dot.case');   // "dot-case" 
slug('weird[case'); // "weird-case" 

Returns the slug-case variant of a string.

MIT