time-to-fry
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

frying-time

Library to calculate minimum time that is needed to fry some amount of cutlets in case of restricted frying pan capacity

Importing

It supposed to use naming import cuz defaults aren't cool:

import { getFryingTime } from 'time-to-fry'

Using

getFryingTime(cutletsAmount: number, panCapacity: number, tps: number): number - returns minimum time of frying cutlets

where:

cutletsAmount is total amount of cutlets that need to be fried,

panCapacity is amount of cutlets that your pan can contain at one time,

tps is 'time per side' parameter ('side' is top/bottom surface of cutlet)

Attention! Using non-standart cutlet (with sides of quantity more that two) wastes you time!

Disclaimer

Calculating algorithm is contraversal and could be discussed (but isn't guaranted to be changed).

Package Sidebar

Install

npm i time-to-fry

Weekly Downloads

0

Version

1.0.0

License

ISC

Unpacked Size

2.35 kB

Total Files

5

Last publish

Collaborators

  • dfolomkin