https://github.com/denorg/humanize-url
🔗 Humanize a URL in Deno https://yogi.codes → yogi.codes
https://github.com/denorg/humanize-url
deno denoland denorg humanize typescript url
Last synced: about 1 month ago
JSON representation
🔗 Humanize a URL in Deno https://yogi.codes → yogi.codes
- Host: GitHub
- URL: https://github.com/denorg/humanize-url
- Owner: denorg
- License: mit
- Created: 2020-05-23T06:58:28.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-06-01T11:51:37.000Z (about 6 years ago)
- Last Synced: 2025-10-14T15:08:11.880Z (8 months ago)
- Topics: deno, denoland, denorg, humanize, typescript, url
- Language: TypeScript
- Homepage: https://denorg.github.io/humanize-url/
- Size: 18.6 KB
- Stars: 1
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# 🔗 Humanize URL
Humanize a URL in Deno https://yogi.codes → yogi.codes/
[](https://github.com/denorg/humanize-url/actions)
[](https://github.com/denorg/humanize-url/blob/master/LICENSE)
[](https://github.com/denorg/humanize-url/graphs/contributors)
[](https://denorg.github.io/starter/)
[](https://github.com/denorg)
[](https://github.com/denorg/humanize-url)
[](https://github.com/semantic-release/semantic-release)
## ⭐ Getting started
Import the `humanizeUrl` or `validURL` function and use it:
```ts
import { humanizeUrl, validURL } from "https://deno.land/x/humanize_url/mod.ts";
await humanizeUrl('https://yogi.codes');
//=> 'yogi.codes'
await validURL('https://yogi.codes');
//=> true
```
### CLI with [DPX](https://github.com/denorg/dpx)
After [installing DPX](https://github.com/denorg/dpx), you can directly use the CLI using the `dpx` command:
```bash
dpx humanize_url https://yogi.codes
# yogi.codes
```
### CLI
Alternatively, you can use it directly from the CLI by using `deno run`:
```bash
deno run https://deno.land/x/humanize_url/cli.ts https://yogi.codes
# yogi.codes
```
You can also install it globally using the following:
```bash
deno install -n humanize_url https://deno.land/x/humanize_url/cli.ts
```
Then, the package is available to run:
```bash
humanize_url https://yogi.codes
# yogi.codes
```
## 👩💻 Development
Run tests:
```bash
deno test
```
## 📄 License
MIT © [Denorg](https://den.org.in)
A project by Denorg, the world's first Deno-focused community
organization and consulting company. Work with us →