box-office-mojo-movie-title

0.3.5 • Public • Published

box-office-mojo-movie-title

Get the title of a Box Office Mojo's movie via its HTML.

npm version Build Status Test Coverage

Install

npm install --save box-office-mojo-movie-title

Usage

var boxOfficeMojoTitle = require('box-office-mojo-movie-title');
var pulpFictionHTML = '<html><head><title>Pulp Fiction (1994) - Box Office Mojo</title></head>/<html>';
 
boxOfficeMojoTitle(pulpFictionHTML); // 'Pulp Fiction'

API

boxOfficeMojoTitle(input)

Returns the title of the Box Office Mojo's movie.

input

Type: string

The full (or partial) HTML of a movie as presented in Box Office Mojo.

Example: Pulp Fiction's page in Box Office Mojo

License

MIT © Alejandro Beltrán

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.3.5
    1
    • latest

Version History

Package Sidebar

Install

npm i box-office-mojo-movie-title

Weekly Downloads

1

Version

0.3.5

License

MIT

Last publish

Collaborators

  • alebelcor