https://github.com/baldir-fr/baldir-slugify
Slugify some text
https://github.com/baldir-fr/baldir-slugify
cli deno text-processing
Last synced: 2 months ago
JSON representation
Slugify some text
- Host: GitHub
- URL: https://github.com/baldir-fr/baldir-slugify
- Owner: baldir-fr
- License: mit
- Created: 2024-12-24T20:50:13.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-24T21:31:36.000Z (over 1 year ago)
- Last Synced: 2025-06-18T23:41:24.145Z (about 1 year ago)
- Topics: cli, deno, text-processing
- Language: JavaScript
- Homepage: https://jsr.io/@baldir/slugify
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Slugify
An lib and cli to slugify a string.
## As CLI
### Usage
```sh
deno main.js "Somê text with Letters' and spaces?"
```
Will output
```
some-text-with-letters-and-spaces
```
### Compile to self-contained executable
```sh
deno compile main.js
```
## As library
Install pakage from JSR.
```sh
# Deno
deno add jsr:@baldir/slugify
# Npm
npx jsr add @baldir/slugify
# Bun
bunx jsr add @baldir/slugify
```