1.5.0 • Published 6 years ago
fhormm v1.5.0
About
Fhormm is a calculation module.But what is this do calculating? A calculator with which you can calculate download time for a file depending on download speed. How long time it will take depends on file size, your own download speed and the server's upload speed.And this very useful.
Installation
Just type npm install fhormm in terminal
Usage
- fhormm(size:
number|string, speed:number|string, type:date|duration) This Module is general expression.
For Example
const fhormm = require('fhormm');
fhormm("1GB","16mb/s","duration")
//Return: 64000Parameters
| Param | Type | Usage |
|---|---|---|
| size | String or Number | "1GB","1" or 1 |
| speed | String or Number | "1MB/s","1" or 1 |
| type | Enum | 'date','duration' |
- size: This param means file size.Use number or string.If it's number,size's type is
byte.If it's string, You must use different options. TheseByteKBMBGBTB,PB,EB,ZB,YB - speed: Use number or string.If you use it as a number,Internet speed's type be
bps.If you want use it as a string, You must use different options. These:BytepsByte/skbpsKB/smbpsMB/sgbpsGB/stbpsTB/s, ps, /s ... - type: Result is depend type parameter .It has 2 options.These
dateandduration. - date: returnDatedata - duration returnNumberdata. And type is milisecond If this parameter is undefined, param isdate.
Note
- If size and speed's types are not specified, The values are read type of byte and bit/s
- If Type (Paramaters) is undefined, Type is read "0 byte or 0 bit/s"
1.5.0
6 years ago
1.3.2
7 years ago
1.3.0
7 years ago
1.2.3
7 years ago
1.2.2
7 years ago
1.2.1
7 years ago
1.2.0
7 years ago
1.1.9
7 years ago
1.1.8
7 years ago
1.1.7
7 years ago
1.1.6
7 years ago
1.1.5-stable
7 years ago
1.1.5
7 years ago
1.1.41
7 years ago
1.1.4
7 years ago
1.1.3
7 years ago
1.1.1
7 years ago
1.1.0
7 years ago
1.0.4
7 years ago
1.0.2
7 years ago
1.0.1
7 years ago
1.0.0
7 years ago