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

nothing-beats-the-bell

v1.2.8

Published

NothingBeatsTheBell

Downloads

3

Readme

Nothing Beats The Bell

Downloads

A node package made purely for fun, and the desire to Live Mas® in all aspects of life. I make no claims that this is using best practices as I am constantly learning what those are. If you would like to contribute to this package, please let me know.

Install using npm:

$ npm install nothing-beats-the-bell

Basic Examples:

var NBTB = require('nothing-beats-the-bell')

var myTaco = NBTB.getTaco()

console.log(myTaco) //this will output a random taco from Taco Bell's Taco specific menu.

If you would like to get a specific item use any of the following:

.getItem('itemName') //this can grab any menu item
.getTaco('itemname') //this will only search through the Tacos
.getBurrito('itemname') //this will only search through the Burritos

An upcoming feature I would like to implement is Regex matching on item names, so you don't have to get it exactly right. As it stands right now you have to get the name exact to find your specific item. Any misspellings will result in grabbing a random item off your specified menu instead.

To find out how much your particular item will cost you, or how much it will expand your waistline:

var myTaco = NBTB.getTaco()

var myTacoCalories = NBTB.getCalories(myTaco) //.getCalories('itemName') will also work

var myTacoPrice = NBTB.getPrice(myTaco) //.getPrice('itemName') will also work

If you would like all of Taco Bell's many offerings:

var allItems = NBTB.getAll()

//output:
[
    {
        "Menu": "new",
        "Item": "Toasted Cheddar Chalupa Box",
        "Price": "$5.00",
        "Calories": "1110 Cal"
    },
    {
        "Menu": "tacos",
        "Item": "Soft Taco",
        "Price": "$1.29",
        "Calories": "180 Cal"
    },...
]

To create your own "order" there is a creatOrder method to utilize. The naming is the exact same as the currently supported menus, without the "get":

var order = NBTB.createOrder;

var myOrder = {
    Burrito: order.Burrito(),
    Taco: order.Taco()
    //etc...
    
}

Last, but certainly not least, for those who truly want to Live Mas®

var livingMas = NBTB.liveMas();

Currently Supported Menus

//New and rotating items
.getNew()
//Drinks
.getDrink()
//Tacos and Taco Party Packs
.getTaco()
//Entrees - Tacos, Quesadillas, Burritos, Nachos, and Specialites
.getEntree()
//Burritos
.getBurrito()
//Cravings Value Menu
.getValue()
//Vegitarian Menu Items
.getVegitarian()
//Breakfast Items
.getBreakfast()

Refreshing the Menu (as of 04/07/21)

In the ./src folder is refresh.js, running this file will refresh the json file that the module is pulling from. It uses axios and cheerio to scrape Taco Bell's online menu, found here.

It would be unreasonble to assume that they (Taco Bell) will never change the layout or structure of their online menu, so attempts will be made to modify the refresh file to keep it updated. If there comes a time where this is no longer possible, the most recent version of menuItems.json will become the last version of menuItems.json.

04/07/21 - Retooled the scraper to fix the issue of the class tag on main menu items changing. refresh.js is now working again like expected.