slug-component

slug generator

Usage no npm install needed!

<script type="module">
  import slugComponent from 'https://cdn.skypack.dev/slug-component';
</script>

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