README
slug
slug generator
Installation
$ component install yields/slug
API
slug(str[, replacement])
slug('foo bar');
// > foo-bar
slug('foo bar', '_');
// > foo_bar
Tests
$ make test
License
MIT
slug generator
<script type="module">
import slugComponent from 'https://cdn.skypack.dev/slug-component';
</script>
slug generator
$ component install yields/slug
slug('foo bar');
// > foo-bar
slug('foo bar', '_');
// > foo_bar
$ make test
MIT