get-url-title

Get the title of a URL.

Usage no npm install needed!

<script type="module">
  import getUrlTitle from 'https://cdn.skypack.dev/get-url-title';
</script>

README

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.