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

bakers-math

v1.1.4

Published

Baker's percentage calculator

Downloads

17

Readme

Introduction

Imagine baking as a fun adventure, where we use special math to make delicious treats! Our Baker's Calculator is like a magical tool that helps us figure out how much of each ingredient we need. We can even use it to make our recipes bigger or smaller. It's simple! We just divide the weight of an ingredient by the weight of the flour, and then we multiply by 100. That gives us the special number called the baker's percentage. We can do this for everything we put in our recipes, like butter, sugar, and even water. With our friendly calculator, baking becomes super easy and super yummy!

Key Features

  • Ingredient Ratio Calculation: The calculator allows you to determine the precise ratios of ingredients in a recipe, expressed as a percentage of the flour weight. It helps you maintain consistency and accuracy in your baking.
  • Flexible Ingredient Support: The calculator supports a wide range of ingredients, including flour, water, yeast, salt, sugar, fats, and other mix-ins commonly used in baking. It allows you to calculate the percentages for any ingredient in your recipe.
  • Easy-to-Use Interface: The calculator provides a user-friendly interface that simplifies the process of entering ingredient weights and obtaining the corresponding percentages. It ensures a smooth and intuitive user experience.
  • Scaling Capabilities: The calculator enables easy scaling of recipes by adjusting ingredient quantities while preserving the desired ratios. It helps you adapt recipes to different batch sizes without compromising the integrity of the formula.
  • Quick and Accurate Results: The calculator performs calculations instantly, providing accurate baker's percentages with minimal effort. It saves time and reduces the likelihood of human error when manually calculating ingredient ratios.
  • Web version
    • Recipe Management: Advanced calculators offer the ability to manage and save multiple recipes, allowing you to store and retrieve your preferred formulas for future use.

These features collectively enhance the precision, consistency, and scalability of your baking recipes, making the Baker's Percentage Calculator an invaluable tool for both amateur and professional bakers.

How To Use

You can run npm install bakers-math

To clone and run this application, you'll need Git and Node.js (which comes with npm) installed on your computer. From your command line:

const RecipeCreator = require('bakers-math')

// Example usage
// set the bakery product, how much each one should 
// weight, and how many to be made.
const creator = new RecipeCreator('Buns', 100, 20);


// Add the percentage of the 
// additional ingredients
creator.addIngredient('Water', 63);
creator.addIngredient('Yeast', 1.4);
creator.addIngredient('Salt', 2);

const recipe = creator.createRecipe();

console.log(recipe);
console.log(`Recipe quantity: ${recipe.quantity}`);
console.log(`Ingredient: ${recipe.ingredients[0].name}, weight: ${recipe.ingredients[0].weight}g`);

The Sourdough Framework

It's an open-source book dedicated to helping you to make the best possible sourdough bread at home.

License

MIT


 ·  GitHub @talescript  ·