Skip to content

Npm package to retrieve the title at a given url. Largely combines articleTitle with request.

License

Notifications You must be signed in to change notification settings

connect3world/get-title-at-url

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

75 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

get-title-at-url

npm package

Build Status npm Dependency Status Coverage Status Known Vulnerabilities XO code style Gitter

Npm package to retrieve the title at a given url. Largely combines articleTitle with request.

Installation

Installation is easiest through npm:

npm install get-title-at-url --save

Usage

get-title-at-url can be included as a reference.

var getTitleAtUrl = require('get-title-at-url');

getTitleAtUrl(url, function(title){
  console.log(title);
});

CLI

$ npm install --global get-title-at-url
$ get-title-at-url --help

  Usage
    $ get-title-at-url "<url>"

  Example
    $ get-title-at-url "http://www.google.com"

The getTitleAtUrl will use the callback function with the following signature callback(title, requestError). The requestError will be whatever error request passes back, the title will be empty if there was an issue.

License

MIT © Mark Rogers

About

Npm package to retrieve the title at a given url. Largely combines articleTitle with request.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%