checkthefilm
v10.9.3
Published
this is an exemple
Readme
film
A npm package for checking films. You get infos by film by checking them by authors, years and genres.
--
Features
-Get film by author: You can search auhtor's film; -Get film by year: you can search films by year of pubblications; -Get film by genre: a function allows you to search film by genres;
Installation
Install the package using npm:
npm install checkthefilmUsage
Import the package into your project:
const checkthefilm = require("checkthefilm");Search film by author
const filmAuthor = checkthefilm.filmsByAuthor();
console.log(`the author is: ${filmAuthor}`);Search the oldest film
const theOldest = checkthefilm.extraOldFilms(1960);
console.log(`the films published before 1960 are: ${theOldest}`);Search film by genre
const genre = checkthefilm.filmsByGenre("Drama");
console.log(`Here there are all the drama films: ${genre}`);API Reference
filmsByAuthor()
Search films by author
Parameters:
-Author (String): he author whose films are intended to be searched
Returns:
-String: the name of the author;
extraOldFilms()
Select movies older than the specified date
Parameters:
-Years (Number): The cutoff year for searching for films released before
Return:
-Number: the cutoff year
filmsByGenre
Search movies by genre
Parameters:
-Genre (String): one or more films genres
Return:
-String: The film genre
License
This project is licensed under the ISC License. See the LICENSE file for details.
Contributing
Contributions are welcome! Feel free to open an issue or submit a pull request.
Author
Created by Sabrina Gabsi.
