Skip to content

vitorfhc/getapex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

getapex

getapex is a simple command-line tool written in Go that extracts the apex domain from a given URL. It supports reading input URLs from standard input and outputs the apex domain, which is the primary registered domain name.

Installation

To install getapex, make sure you have Go installed and run:

go install github.com/vitorfhc/getapex@latest

Usage

getapex reads URLs from standard input, so you can pipe in a list of URLs or type them in manually:

echo "example.com" | getapex

Output:

example.com

You can also pass multiple URLs from a file:

cat file.txt | getapex

Output:

example.com
domain.com
google.com

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages