1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:17:45 +00:00

Utilities: Implement slugify using AK/Slugify

This commit is contained in:
Gurkirat Singh 2023-10-05 08:11:37 +05:30 committed by Sam Atkins
parent ab2d8c092e
commit 60640fe38d
3 changed files with 88 additions and 0 deletions

View file

@ -0,0 +1,25 @@
## Name
slugify - text to slug transform utility
## Synopsis
```**sh
$ slugify [--format FORMAT] [--glue GLUE] [--single-page] [INPUTS...]
```
## Description
Slugify is a simple text to slug transform utility and prints the result.
## Options
* `-f`, `--format`: Output format to choose from 'md', 'html', 'plain'. (default: md)
* `-g`, `--glue`: Specify delimiter (_single character only_) to join the parts. (default: -)
* `-s`, `--single-page`: Prepends hash/pound (#) to the slugified string when set, otherwise slash (/). Useful for markdowns like in GitHub (default: false)
## Examples
```sh
$ slugify 'Serenity is a cool ### PROject123.'
```