Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/baldir-fr/baldir-slugify
Slugify some text
https://github.com/baldir-fr/baldir-slugify
cli deno text-processing
Last synced: 24 days 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 (about 1 month ago)
- Default Branch: main
- Last Pushed: 2024-12-24T21:08:06.000Z (about 1 month ago)
- Last Synced: 2024-12-24T21:25:27.166Z (about 1 month ago)
- Topics: cli, deno, text-processing
- Language: JavaScript
- Homepage: https://jsr.io/@baldir/slugify
- Size: 0 Bytes
- 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
```