@batou.dev/bytes - v0.6.0
Preparing search index...
Bytes
Class Bytes
Index
Methods
add
as
is
Valid
subtract
to
Binary
to
Decimal
to
Format
to
String
value
Of
from
Bytes
from
String
Methods
add
add
(
bytes
:
string
|
number
|
Bytes
)
:
Bytes
Parameters
bytes
:
string
|
number
|
Bytes
Returns
Bytes
as
as
(
unit
:
FormatUnit
)
:
number
Parameters
unit
:
FormatUnit
Returns
number
is
Valid
isValid
()
:
boolean
Returns
boolean
subtract
subtract
(
bytes
:
string
|
number
|
Bytes
)
:
Bytes
Parameters
bytes
:
string
|
number
|
Bytes
Returns
Bytes
to
Binary
toBinary
(
opts
?:
FormatOpts
<
FormatBinaryUnit
>
)
:
string
Parameters
Optional
opts
:
FormatOpts
<
FormatBinaryUnit
>
Returns
string
to
Decimal
toDecimal
(
opts
?:
FormatOpts
<
FormatDecimalUnit
>
)
:
string
Parameters
Optional
opts
:
FormatOpts
<
FormatDecimalUnit
>
Returns
string
to
Format
toFormat
(
format
:
string
,
opts
?:
FormatOpts
<
FormatUnit
>
)
:
string
Parameters
format
:
string
Optional
opts
:
FormatOpts
<
FormatUnit
>
Returns
string
to
String
toString
(
opts
?:
FormatOpts
<
FormatUnit
>
)
:
string
Parameters
Optional
opts
:
FormatOpts
<
FormatUnit
>
Returns
string
value
Of
valueOf
()
:
number
Returns
number
Static
from
Bytes
fromBytes
(
value
:
number
)
:
Bytes
Parameters
value
:
number
Returns
Bytes
Static
from
String
fromString
(
text
:
string
,
opts
?:
ParseOpts
)
:
Bytes
Parameters
text
:
string
Optional
opts
:
ParseOpts
Returns
Bytes
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
On This Page
Methods
add
as
is
Valid
subtract
to
Binary
to
Decimal
to
Format
to
String
value
Of
from
Bytes
from
String
@batou.dev/bytes - v0.6.0
Loading...