1.0.3 • Published 1 year ago

convert-file-size-to-bytes v1.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

Description:

Convert a string representation of file size to bytes

Example:

'100kb' => 102400 bytes '100 kb' => 102400 bytes '100 KB' => 102400 bytes '100 kB' => 102400 bytes '100k' => Error

Units:

'b' 'kb' 'mb' 'gb' 'tb' 'pb'

Install:

npm i convert-file-size-to-bytes

1.0.2

1 year ago

1.0.3

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago