convert-file-size-to-bytes
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i convert-file-size-to-bytes

Weekly Downloads

719

Version

1.0.3

License

MIT

Unpacked Size

17.4 kB

Total Files

8

Last publish

Collaborators

  • vase-labs