slug-component

1.1.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i slug-component

Weekly Downloads

77,827

Version

1.1.0

License

MIT

Last publish

Collaborators

  • yields