@jkcfg/std
Encoding
Format
Overwrite
Read
Options
Write
Options
stdin
stdout
log
parse
print
read
stringify
values
Format
From
Path
write
Index
Enumerations
Encoding
Format
Overwrite
Interfaces
Read
Options
Write
Options
Variables
stdin
stdout
Functions
log
parse
print
read
stringify
values
Format
From
Path
write
Variables
Const
stdin
stdin
:
keyof symbol
= Symbol('<stdin>')
Const
stdout
stdout
:
keyof symbol
= Symbol('<stdout>')
Functions
log
log
(
value
:
any
)
:
void
module
std
Parameters
value:
any
Returns
void
parse
parse
(
input
:
string
, format
?:
Format
)
:
any
Parameters
input:
string
Optional
format:
Format
Returns
any
print
print
(
value
:
any
, opts
?:
WriteOptions
)
:
void
Parameters
value:
any
Default value
opts:
WriteOptions
= {}
Returns
void
read
read
(
path
?:
ReadPath
, opts
?:
ReadOptions
)
:
Promise
<
any
>
Parameters
Default value
path:
ReadPath
= stdin
Default value
opts:
ReadOptions
= {}
Returns
Promise
<
any
>
stringify
stringify
(
obj
:
any
, format
?:
Format
)
:
string
Parameters
obj:
any
Optional
format:
Format
Returns
string
values
Format
From
Path
values
Format
From
Path
(
path
:
string
)
:
Format
Parameters
path:
string
Returns
Format
write
write
(
value
:
any
, path
?:
WritePath
, opts
?:
WriteOptions
)
:
void
Parameters
value:
any
Default value
path:
WritePath
= stdout
Default value
opts:
WriteOptions
= {}
Returns
void
std