movie-draft

Get the data of a list of Box Office Mojo's movies

Usage no npm install needed!

<script type="module">
  import movieDraft from 'https://cdn.skypack.dev/movie-draft';
</script>

README

movie-draft

Get the data of a list of Box Office Mojo's movies.

npm version Build Status Test Coverage

Install

npm install --save movie-draft

Usage

var movieDraft = require('movie-draft');

movieDraft(['pulpfiction.htm']); // [ { title: 'Pulp Fiction', domesticGross: 107928762 } ]

API

movieDraft(movieIds)

Returns a promise that resolves to an array of objects with the data of the Box Office Mojo's movie.

movieIds

Type: array of strings

An array of one or more IDs of movies as presented in Box Office Mojo.

Example: The ID for Pulp Fiction would be pulpfiction.htm.

License

MIT © Alejandro Beltrán