npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

looney-tunes

v1.1.5

Published

Get Looney Tunes Names, including all their own information and photos

Downloads

41

Readme

Welcome to Looney Tunes Library!

"What's up, doc?”

Looney Tunes NPM Library

Installation

$ npm install looney-tunes

Usage

To use the Looney Tunes library in your project, import it as follows:

const looneyTunes = require('looney-tunes');

Functions

1. all()

This function retrieves information about all Looney Tunes characters available.

Returns: An array of Looney Tunes characters.

Example:

const allLooneyTunes = looneyTunes.all();
console.log(allLooneyTunes);

2. names()

This function retrieves a list of all Looney Tunes character names available.

Returns: An array containing names of all Looney Tunes characters.

Example:

const looneyNames = looneyTunes.names();
console.log(looneyNames);

3. random()

This function retrieves a random Looney Tunes character.

Returns: A single random Looney Tunes character.

Example:

const randomLooneyTune = looneyTunes.random();
console.log(randomLooneyTune);

4. getLooney(looneyName)

This function retrieves details about a specific Looney Tunes character based on the provided name in the parameter.

Returns: Information about the specified Looney Tunes character.

Example:

const looneyName = 'Bugs Bunny';
const looneyDetails = looneyTunes.getLooney(looneyName);
console.log(looneyDetails);

5. friends(looneyName)

This function retrieves the list of friends of a specific Looney Tunes character based on the provided name.

Returns: An array of friends of the specified Looney Tunes character.

Example:

const looneyName = 'Porky Pig';
const looneyFriends = looneyTunes.friends(looneyName);
console.log(looneyFriends);

6. enemies(looneyName)

This function retrieves the list of enemies of a specific Looney Tunes character based on the provided name.

Returns: An array of enemies of the specified Looney Tunes character.

Example:

const looneyName = 'Elmer Fudd';
const looneyEnemies = looneyTunes.enemies(looneyName);
console.log(looneyEnemies);

Console Log Outputs

  1. all(): The output will be an array of Looney Tunes characters with their details.
  2. names(): The output will be an array containing names of all Looney Tunes characters.
  3. random(): The output will be a single random Looney Tunes character with its details.
  4. getLooney(looneyName): The output will be information about the specified Looney Tunes character.
  5. friends(looneyName): The output will be an array of friends of the specified Looney Tunes character.
  6. enemies(looneyName): The output will be an array of enemies of the specified Looney Tunes character.

Please note that the console log outputs will display the relevant information when the functions are called correctly.

Remember to handle errors appropriately, such as incorrect input, using try-catch blocks when calling these functions.

Also, Looney Tunes is an experimental library, and it may have some limitations or occasional bugs. We are committed to continuously improving and resolving any issues that may arise over time. Your feedback and support are invaluable in helping us enhance the library's functionality and reliability. Thank you for your understanding and patience as we work towards delivering a more robust and dependable experience.