Skip to content

denorg/humanize-url

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

17 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ”— Humanize URL

Humanize a URL in Deno https://yogi.codes β†’ yogi.codes/

Deno CI GitHub Contributors Deno Starter Made by Denorg TypeScript semantic-release

⭐ Getting started

Import the humanizeUrl or validURL function and use it:

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

After installing DPX, you can directly use the CLI using the dpx command:

dpx humanize_url https://yogi.codes
# yogi.codes

CLI

Alternatively, you can use it directly from the CLI by using deno run:

deno run https://deno.land/x/humanize_url/cli.ts https://yogi.codes
# yogi.codes

You can also install it globally using the following:

deno install -n humanize_url https://deno.land/x/humanize_url/cli.ts

Then, the package is available to run:

humanize_url https://yogi.codes
# yogi.codes

πŸ‘©β€πŸ’» Development

Run tests:

deno test

πŸ“„ License

MIT Β© Denorg

A project by Denorg, the world's first Deno-focused community
organization and consulting company. Work with us β†’