mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:57:43 +00:00
Utilities: Implement slugify
using AK/Slugify
This commit is contained in:
parent
ab2d8c092e
commit
60640fe38d
3 changed files with 88 additions and 0 deletions
25
Base/usr/share/man/man1/slugify.md
Normal file
25
Base/usr/share/man/man1/slugify.md
Normal 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.'
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue