box-office-mojo-movie-title
v0.3.5
Published
Get the title of a Box Office Mojo's movie via its HTML
Downloads
11
Readme
box-office-mojo-movie-title
Get the title of a Box Office Mojo's movie via its HTML.
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