Skip to content

Richienb/get-url-title

Repository files navigation

get-url-title Travis CI Build Status

Get the title of a URL.

NPM Badge

Install

npm install get-url-title

Usage

const getUrlTitle = require("get-url-title")

await getUrlTitle("https://google.com")
//=> 'Google'

await getUrlTitle("https://example.com")
//=> 'Example Domain'

API

getUrlTitle(url)

url

Type: string

The url to get the title for.