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

Dependencies (1)

Dev Dependencies (3)

Package Sidebar

Install

npm i box-office-mojo-movie-title

Weekly Downloads

0

Version

0.3.5

License

MIT

Last publish

Collaborators

  • alebelcor