1.5.0 • Published 4 years ago

fhormm v1.5.0

Weekly downloads
1
License
ISC
Repository
-
Last release
4 years ago

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: 64000

Parameters

ParamTypeUsage
sizeString or Number"1GB","1" or 1
speedString or Number"1MB/s","1" or 1
typeEnum'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. These Byte KB MB GB TB,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: Byteps Byte/s kbps KB/s mbps MB/s gbps GB/s tbps TB/s, ps, /s ...
  • type: Result is depend type parameter .It has 2 options.These date and duration. - date: return Date data - duration return Number data. And type is milisecond If this parameter is undefined, param is date.

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

4 years ago

1.3.2

5 years ago

1.3.0

5 years ago

1.2.3

6 years ago

1.2.2

6 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.9

6 years ago

1.1.8

6 years ago

1.1.7

6 years ago

1.1.6

6 years ago

1.1.5-stable

6 years ago

1.1.5

6 years ago

1.1.41

6 years ago

1.1.4

6 years ago

1.1.3

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.4

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago