https://github.com/alexcarpenter/slugify
Convert a string into a slug
https://github.com/alexcarpenter/slugify
composition currying fp point-free
Last synced: 6 months ago
JSON representation
Convert a string into a slug
- Host: GitHub
- URL: https://github.com/alexcarpenter/slugify
- Owner: alexcarpenter
- License: mit
- Created: 2019-11-26T20:08:48.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-05T01:46:22.000Z (over 2 years ago)
- Last Synced: 2025-04-12T10:14:26.132Z (6 months ago)
- Topics: composition, currying, fp, point-free
- Language: JavaScript
- Homepage: https://npm.im/@alexcarpenter/slugify
- Size: 250 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# slugify
> Convert a string into a slug
## Installation
```bash
$ npm i @alexcarpenter/slugify
```## Usage
```js
import slugify from '@alexcarpenter/slugify';slugify('dé jà vu'); // de-ja-vu
slugify('fooBar'); // foo-bar
slugify('foo 👻 bar'); // foo-bar
```## License
[MIT](LICENSE).