how-many-pizza
Version:
Calculate how many pizza you need for your event/party based on the number of people
37 lines (25 loc) • 879 B
Markdown
This module helps you to calculate how many Pizza you need based on number of people
you want to feed.
[](http://gawker.com/how-many-pizzas-should-you-order-the-pizza-equation-wi-1697815579)
```
npm install how-many-pizza
```
**`howManyPizza(people, [slicesXperson], [
```
// Load library
var howManyPizza = require('how-many-pizza');
// Calculate pizzas for 50 people
console.log(howManyPizza(50)); // => 19
// Calculate pizzas for 50 people
// 4 slices per person and pizzas of 12 slices
console.log(howManyPizza(50, 4, 12)); // => 17
```
```
npm test
```
License MIT