Convert.js

Star

Data Units


Usage
convert.DataUnits(data, source, target)

Parameters:
Data => Value to be converted
Source => Current unit
Target => Output unit

Source / Target Units:
  • byte => Bytes
  • kb => Kilobytes
  • mb => Megabytes
  • gb => Gigabytes
  • pb => Petabytes

Examples: