Search
Preparing search index...
The search index is not available
Yarn API
Home
Configuration
Features
CLI
Advanced
GitHub
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
yarnpkg-fslib
AliasFS
Globals
{"Generic Packages":{"@yarnpkg/core":"yarnpkg_core","@yarnpkg/fslib":"yarnpkg_fslib","@yarnpkg/libzip":"yarnpkg_libzip","@yarnpkg/nm":"yarnpkg_nm","@yarnpkg/parsers":"yarnpkg_parsers","@yarnpkg/pnp":"yarnpkg_pnp","@yarnpkg/pnpify":"yarnpkg_pnpify","@yarnpkg/sdks":"yarnpkg_sdks","@yarnpkg/shell":"yarnpkg_shell"},"Yarn Packages":{"@yarnpkg/builder":"yarnpkg_builder","@yarnpkg/cli":"yarnpkg_cli"},"Default Plugins":{"@yarnpkg/plugin-compat":"plugin_compat","@yarnpkg/plugin-dlx":"plugin_dlx","@yarnpkg/plugin-essentials":"plugin_essentials","@yarnpkg/plugin-file":"plugin_file","@yarnpkg/plugin-git":"plugin_git","@yarnpkg/plugin-github":"plugin_github","@yarnpkg/plugin-http":"plugin_http","@yarnpkg/plugin-init":"plugin_init","@yarnpkg/plugin-link":"plugin_link","@yarnpkg/plugin-nm":"plugin_nm","@yarnpkg/plugin-npm":"plugin_npm","@yarnpkg/plugin-npm-cli":"plugin_npm_cli","@yarnpkg/plugin-pack":"plugin_pack","@yarnpkg/plugin-patch":"plugin_patch","@yarnpkg/plugin-pnp":"plugin_pnp"},"Contrib Plugins":{"@yarnpkg/plugin-constraints":"plugin_constraints","@yarnpkg/plugin-exec":"plugin_exec","@yarnpkg/plugin-interactive-tools":"plugin_interactive_tools","@yarnpkg/plugin-stage":"plugin_stage","@yarnpkg/plugin-typescript":"plugin_typescript","@yarnpkg/plugin-version":"plugin_version","@yarnpkg/plugin-workspace-tools":"plugin_workspace_tools"}}
Class AliasFS<P>
Type parameters
P
:
Path
Hierarchy
ProxiedFS
<
P
,
P
>
AliasFS
Constructors
constructor
Properties
baseFs
pathUtils
target
Methods
accessPromise
accessSync
appendFilePromise
appendFileSync
changeFilePromise
changeFileSync
chmodPromise
chmodSync
chownPromise
chownSync
closePromise
closeSync
copyFilePromise
copyFileSync
copyPromise
copySync
createReadStream
createWriteStream
existsPromise
existsSync
fchmodPromise
fchmodSync
fchownPromise
fchownSync
fstatPromise
fstatSync
ftruncatePromise
ftruncateSync
genTraversePromise
getBaseFs
getExtractHint
getRealPath
linkPromise
linkSync
lockPromise
lstatPromise
lstatSync
lutimesPromise
lutimesSync
mapFromBase
mapToBase
mkdirPromise
mkdirSync
mkdirpPromise
mkdirpSync
movePromise
moveSync
openPromise
openSync
opendirPromise
opendirSync
preserveTimePromise
preserveTimeSync
readFilePromise
readFileSync
readJsonPromise
readJsonSync
readPromise
readSync
readdirPromise
readdirSync
readlinkPromise
readlinkSync
realpathPromise
realpathSync
removePromise
removeSync
renamePromise
renameSync
resolve
rmdirPromise
rmdirSync
statPromise
statSync
symlinkPromise
symlinkSync
truncatePromise
truncateSync
unlinkPromise
unlinkSync
unwatchFile
utimesPromise
utimesSync
watch
watchFile
writeFilePromise
writeFileSync
writeJsonPromise
writeJsonSync
writePromise
writeSync
Constructors
constructor
new
AliasFS
(
target
:
P
, __namedParameters
:
object
)
:
AliasFS
Parameters
target:
P
__namedParameters:
object
base
Fs
:
FakeFS
<
P
>
path
Utils
:
PathUtils
<
P
>
Returns
AliasFS
Properties
Protected
base
Fs
base
Fs
:
FakeFS
<
P
>
path
Utils
path
Utils
:
PathUtils
<
P
>
Private
target
target
:
P
Methods
access
Promise
access
Promise
(
p
:
P
, mode
?:
undefined
|
number
)
:
Promise
<
void
>
Parameters
p:
P
Optional
mode:
undefined
|
number
Returns
Promise
<
void
>
access
Sync
access
Sync
(
p
:
P
, mode
?:
undefined
|
number
)
:
void
Parameters
p:
P
Optional
mode:
undefined
|
number
Returns
void
append
File
Promise
append
File
Promise
(
p
:
FSPath
<
P
>
, content
:
string
|
Buffer
|
ArrayBuffer
|
DataView
, opts
?:
WriteFileOptions
)
:
Promise
<
void
>
Parameters
p:
FSPath
<
P
>
content:
string
|
Buffer
|
ArrayBuffer
|
DataView
Optional
opts:
WriteFileOptions
Returns
Promise
<
void
>
append
File
Sync
append
File
Sync
(
p
:
FSPath
<
P
>
, content
:
string
|
Buffer
|
ArrayBuffer
|
DataView
, opts
?:
WriteFileOptions
)
:
void
Parameters
p:
FSPath
<
P
>
content:
string
|
Buffer
|
ArrayBuffer
|
DataView
Optional
opts:
WriteFileOptions
Returns
void
change
File
Promise
change
File
Promise
(
p
:
P
, content
:
Buffer
)
:
Promise
<
void
>
change
File
Promise
(
p
:
P
, content
:
string
, opts
?:
ChangeFileOptions
)
:
Promise
<
void
>
Parameters
p:
P
content:
Buffer
Returns
Promise
<
void
>
Parameters
p:
P
content:
string
Optional
opts:
ChangeFileOptions
Returns
Promise
<
void
>
change
File
Sync
change
File
Sync
(
p
:
P
, content
:
Buffer
)
:
void
change
File
Sync
(
p
:
P
, content
:
string
, opts
?:
ChangeFileOptions
)
:
void
Parameters
p:
P
content:
Buffer
Returns
void
Parameters
p:
P
content:
string
Optional
opts:
ChangeFileOptions
Returns
void
chmod
Promise
chmod
Promise
(
p
:
P
, mask
:
number
)
:
Promise
<
void
>
Parameters
p:
P
mask:
number
Returns
Promise
<
void
>
chmod
Sync
chmod
Sync
(
p
:
P
, mask
:
number
)
:
void
Parameters
p:
P
mask:
number
Returns
void
chown
Promise
chown
Promise
(
p
:
P
, uid
:
number
, gid
:
number
)
:
Promise
<
void
>
Parameters
p:
P
uid:
number
gid:
number
Returns
Promise
<
void
>
chown
Sync
chown
Sync
(
p
:
P
, uid
:
number
, gid
:
number
)
:
void
Parameters
p:
P
uid:
number
gid:
number
Returns
void
close
Promise
close
Promise
(
fd
:
number
)
:
Promise
<
void
>
Parameters
fd:
number
Returns
Promise
<
void
>
close
Sync
close
Sync
(
fd
:
number
)
:
void
Parameters
fd:
number
Returns
void
copy
File
Promise
copy
File
Promise
(
sourceP
:
P
, destP
:
P
, flags
?:
number
)
:
Promise
<
void
>
Parameters
sourceP:
P
destP:
P
Default value
flags:
number
= 0
Returns
Promise
<
void
>
copy
File
Sync
copy
File
Sync
(
sourceP
:
P
, destP
:
P
, flags
?:
number
)
:
void
Parameters
sourceP:
P
destP:
P
Default value
flags:
number
= 0
Returns
void
copy
Promise
copy
Promise
(
destination
:
P
, source
:
P
, options
?:
undefined
|
object
)
:
Promise
<
void
>
copy
Promise<P2>
(
destination
:
P
, source
:
P2
, options
:
object
)
:
Promise
<
void
>
Parameters
destination:
P
source:
P
Optional
options:
undefined
|
object
Returns
Promise
<
void
>
Type parameters
P2
:
Path
Parameters
destination:
P
source:
P2
options:
object
base
Fs
:
FakeFS
<
P2
>
Optional
link
Strategy
?:
LinkStrategy
Optional
overwrite
?:
undefined
|
false
|
true
Optional
stable
Sort
?:
undefined
|
false
|
true
Optional
stable
Time
?:
undefined
|
false
|
true
Returns
Promise
<
void
>
copy
Sync
copy
Sync
(
destination
:
P
, source
:
P
, options
?:
undefined
|
object
)
:
void
copy
Sync<P2>
(
destination
:
P
, source
:
P2
, options
:
object
)
:
void
deprecated
Prefer using
copyPromise
instead
Parameters
destination:
P
source:
P
Optional
options:
undefined
|
object
Returns
void
Type parameters
P2
:
Path
Parameters
destination:
P
source:
P2
options:
object
base
Fs
:
FakeFS
<
P2
>
Optional
overwrite
?:
undefined
|
false
|
true
Returns
void
create
Read
Stream
create
Read
Stream
(
p
:
P
|
null
, opts
?:
CreateReadStreamOptions
)
:
ReadStream
Parameters
p:
P
|
null
Optional
opts:
CreateReadStreamOptions
Returns
ReadStream
create
Write
Stream
create
Write
Stream
(
p
:
P
|
null
, opts
?:
CreateWriteStreamOptions
)
:
WriteStream
Parameters
p:
P
|
null
Optional
opts:
CreateWriteStreamOptions
Returns
WriteStream
exists
Promise
exists
Promise
(
p
:
P
)
:
Promise
<
boolean
>
Parameters
p:
P
Returns
Promise
<
boolean
>
exists
Sync
exists
Sync
(
p
:
P
)
:
boolean
Parameters
p:
P
Returns
boolean
fchmod
Promise
fchmod
Promise
(
fd
:
number
, mask
:
number
)
:
Promise
<
void
>
Parameters
fd:
number
mask:
number
Returns
Promise
<
void
>
fchmod
Sync
fchmod
Sync
(
fd
:
number
, mask
:
number
)
:
void
Parameters
fd:
number
mask:
number
Returns
void
fchown
Promise
fchown
Promise
(
fd
:
number
, uid
:
number
, gid
:
number
)
:
Promise
<
void
>
Parameters
fd:
number
uid:
number
gid:
number
Returns
Promise
<
void
>
fchown
Sync
fchown
Sync
(
fd
:
number
, uid
:
number
, gid
:
number
)
:
void
Parameters
fd:
number
uid:
number
gid:
number
Returns
void
fstat
Promise
fstat
Promise
(
fd
:
number
)
:
Promise
<
Stats
>
fstat
Promise
(
fd
:
number
, opts
:
object
)
:
Promise
<
BigIntStats
>
fstat
Promise
(
fd
:
number
, opts
?:
undefined
|
object
)
:
Promise
<
BigIntStats
|
Stats
>
Parameters
fd:
number
Returns
Promise
<
Stats
>
Parameters
fd:
number
opts:
object
bigint
:
true
Returns
Promise
<
BigIntStats
>
Parameters
fd:
number
Optional
opts:
undefined
|
object
Returns
Promise
<
BigIntStats
|
Stats
>
fstat
Sync
fstat
Sync
(
fd
:
number
)
:
Stats
fstat
Sync
(
fd
:
number
, opts
:
object
)
:
BigIntStats
fstat
Sync
(
fd
:
number
, opts
?:
undefined
|
object
)
:
BigIntStats
|
Stats
Parameters
fd:
number
Returns
Stats
Parameters
fd:
number
opts:
object
bigint
:
true
Returns
BigIntStats
Parameters
fd:
number
Optional
opts:
undefined
|
object
Returns
BigIntStats
|
Stats
ftruncate
Promise
ftruncate
Promise
(
fd
:
number
, len
?:
undefined
|
number
)
:
Promise
<
void
>
Parameters
fd:
number
Optional
len:
undefined
|
number
Returns
Promise
<
void
>
ftruncate
Sync
ftruncate
Sync
(
fd
:
number
, len
?:
undefined
|
number
)
:
void
Parameters
fd:
number
Optional
len:
undefined
|
number
Returns
void
gen
Traverse
Promise
gen
Traverse
Promise
(
init
:
P
, __namedParameters
?:
object
)
:
AsyncGenerator
<
P
,
void
,
unknown
>
Parameters
init:
P
Default value
__namedParameters:
object
= {}
stable
Sort
:
boolean
Returns
AsyncGenerator
<
P
,
void
,
unknown
>
get
Base
Fs
get
Base
Fs
(
)
:
FakeFS
<
P
>
Returns
FakeFS
<
P
>
get
Extract
Hint
get
Extract
Hint
(
hints
:
ExtractHintOptions
)
:
boolean
Parameters
hints:
ExtractHintOptions
Returns
boolean
get
Real
Path
get
Real
Path
(
)
:
P
Returns
P
link
Promise
link
Promise
(
existingP
:
P
, newP
:
P
)
:
Promise
<
void
>
Parameters
existingP:
P
newP:
P
Returns
Promise
<
void
>
link
Sync
link
Sync
(
existingP
:
P
, newP
:
P
)
:
void
Parameters
existingP:
P
newP:
P
Returns
void
lock
Promise
lock
Promise<T>
(
affectedPath
:
P
, callback
:
function
)
:
Promise
<
T
>
Type parameters
T
Parameters
affectedPath:
P
callback:
function
(
)
:
Promise
<
T
>
Returns
Promise
<
T
>
Returns
Promise
<
T
>
lstat
Promise
lstat
Promise
(
p
:
P
)
:
Promise
<
Stats
>
lstat
Promise
(
p
:
P
, opts
:
StatOptions
&
object
|
undefined
)
:
Promise
<
Stats
>
lstat
Promise
(
p
:
P
, opts
:
StatOptions
&
object
)
:
Promise
<
BigIntStats
>
Parameters
p:
P
Returns
Promise
<
Stats
>
Parameters
p:
P
opts:
StatOptions
&
object
|
undefined
Returns
Promise
<
Stats
>
Parameters
p:
P
opts:
StatOptions
&
object
Returns
Promise
<
BigIntStats
>
lstat
Sync
lstat
Sync
(
p
:
P
)
:
Stats
lstat
Sync
(
p
:
P
, opts
?:
StatSyncOptions
&
object
)
:
Stats
|
undefined
lstat
Sync
(
p
:
P
, opts
:
StatSyncOptions
&
object
)
:
BigIntStats
|
undefined
lstat
Sync
(
p
:
P
, opts
?:
StatSyncOptions
&
object
)
:
Stats
lstat
Sync
(
p
:
P
, opts
:
StatSyncOptions
&
object
)
:
BigIntStats
lstat
Sync
(
p
:
P
, opts
:
StatSyncOptions
&
object
)
:
Stats
|
BigIntStats
Parameters
p:
P
Returns
Stats
Parameters
p:
P
Optional
opts:
StatSyncOptions
&
object
Returns
Stats
|
undefined
Parameters
p:
P
opts:
StatSyncOptions
&
object
Returns
BigIntStats
|
undefined
Parameters
p:
P
Optional
opts:
StatSyncOptions
&
object
Returns
Stats
Parameters
p:
P
opts:
StatSyncOptions
&
object
Returns
BigIntStats
Parameters
p:
P
opts:
StatSyncOptions
&
object
Returns
Stats
|
BigIntStats
Optional
lutimes
Promise
lutimes
Promise
(
p
:
P
, atime
:
Date
|
string
|
number
, mtime
:
Date
|
string
|
number
)
:
Promise
<
void
>
Parameters
p:
P
atime:
Date
|
string
|
number
mtime:
Date
|
string
|
number
Returns
Promise
<
void
>
Optional
lutimes
Sync
lutimes
Sync
(
p
:
P
, atime
:
Date
|
string
|
number
, mtime
:
Date
|
string
|
number
)
:
void
Parameters
p:
P
atime:
Date
|
string
|
number
mtime:
Date
|
string
|
number
Returns
void
Protected
map
From
Base
map
From
Base
(
p
:
P
)
:
P
Parameters
p:
P
Returns
P
Protected
map
ToBase
map
ToBase
(
p
:
P
)
:
P
Parameters
p:
P
Returns
P
mkdir
Promise
mkdir
Promise
(
p
:
P
, opts
?:
MkdirOptions
)
:
Promise
<
undefined
|
string
>
Parameters
p:
P
Optional
opts:
MkdirOptions
Returns
Promise
<
undefined
|
string
>
mkdir
Sync
mkdir
Sync
(
p
:
P
, opts
?:
MkdirOptions
)
:
undefined
|
string
Parameters
p:
P
Optional
opts:
MkdirOptions
Returns
undefined
|
string
mkdirp
Promise
mkdirp
Promise
(
p
:
P
, __namedParameters
?:
object
)
:
Promise
<
string
|
undefined
>
Parameters
p:
P
Default value
__namedParameters:
object
= {}
chmod
:
undefined
|
number
utimes
:
undefined
|
[
string
|
number
|
Date
,
string
|
number
|
Date
]
Returns
Promise
<
string
|
undefined
>
mkdirp
Sync
mkdirp
Sync
(
p
:
P
, __namedParameters
?:
object
)
:
string
|
undefined
Parameters
p:
P
Default value
__namedParameters:
object
= {}
chmod
:
undefined
|
number
utimes
:
undefined
|
[
string
|
number
|
Date
,
string
|
number
|
Date
]
Returns
string
|
undefined
move
Promise
move
Promise
(
fromP
:
P
, toP
:
P
)
:
Promise
<
void
>
Parameters
fromP:
P
toP:
P
Returns
Promise
<
void
>
move
Sync
move
Sync
(
fromP
:
P
, toP
:
P
)
:
void
Parameters
fromP:
P
toP:
P
Returns
void
open
Promise
open
Promise
(
p
:
P
, flags
:
string
, mode
?:
undefined
|
number
)
:
Promise
<
number
>
Parameters
p:
P
flags:
string
Optional
mode:
undefined
|
number
Returns
Promise
<
number
>
open
Sync
open
Sync
(
p
:
P
, flags
:
string
, mode
?:
undefined
|
number
)
:
number
Parameters
p:
P
flags:
string
Optional
mode:
undefined
|
number
Returns
number
opendir
Promise
opendir
Promise
(
p
:
P
, opts
?:
OpendirOptions
)
:
Promise
<
Dir
<
P
>
>
Parameters
p:
P
Optional
opts:
OpendirOptions
Returns
Promise
<
Dir
<
P
>
>
opendir
Sync
opendir
Sync
(
p
:
P
, opts
?:
OpendirOptions
)
:
Dir
<
P
>
Parameters
p:
P
Optional
opts:
OpendirOptions
Returns
Dir
<
P
>
preserve
Time
Promise
preserve
Time
Promise
(
p
:
P
, cb
:
function
)
:
Promise
<
void
>
Parameters
p:
P
cb:
function
(
)
:
Promise
<
P
|
void
>
Returns
Promise
<
P
|
void
>
Returns
Promise
<
void
>
preserve
Time
Sync
preserve
Time
Sync
(
p
:
P
, cb
:
function
)
:
Promise
<
void
>
Parameters
p:
P
cb:
function
(
)
:
P
|
void
Returns
P
|
void
Returns
Promise
<
void
>
read
File
Promise
read
File
Promise
(
p
:
FSPath
<
P
>
, encoding
:
"utf8"
)
:
Promise
<
string
>
read
File
Promise
(
p
:
FSPath
<
P
>
, encoding
?:
undefined
|
string
)
:
Promise
<
Buffer
>
Parameters
p:
FSPath
<
P
>
encoding:
"utf8"
Returns
Promise
<
string
>
Parameters
p:
FSPath
<
P
>
Optional
encoding:
undefined
|
string
Returns
Promise
<
Buffer
>
read
File
Sync
read
File
Sync
(
p
:
FSPath
<
P
>
, encoding
:
"utf8"
)
:
string
read
File
Sync
(
p
:
FSPath
<
P
>
, encoding
?:
undefined
|
string
)
:
Buffer
Parameters
p:
FSPath
<
P
>
encoding:
"utf8"
Returns
string
Parameters
p:
FSPath
<
P
>
Optional
encoding:
undefined
|
string
Returns
Buffer
read
Json
Promise
read
Json
Promise
(
p
:
P
)
:
Promise
<
any
>
Parameters
p:
P
Returns
Promise
<
any
>
read
Json
Sync
read
Json
Sync
(
p
:
P
)
:
any
Parameters
p:
P
Returns
any
read
Promise
read
Promise
(
fd
:
number
, buffer
:
Buffer
, offset
?:
undefined
|
number
, length
?:
undefined
|
number
, position
?:
number
|
null
)
:
Promise
<
number
>
Parameters
fd:
number
buffer:
Buffer
Optional
offset:
undefined
|
number
Optional
length:
undefined
|
number
Optional
position:
number
|
null
Returns
Promise
<
number
>
read
Sync
read
Sync
(
fd
:
number
, buffer
:
Buffer
, offset
:
number
, length
:
number
, position
:
number
)
:
number
Parameters
fd:
number
buffer:
Buffer
offset:
number
length:
number
position:
number
Returns
number
readdir
Promise
readdir
Promise
(
p
:
P
)
:
Promise
<
Array
<
Filename
>
>
readdir
Promise
(
p
:
P
, opts
:
object
|
null
)
:
Promise
<
Array
<
Filename
>
>
readdir
Promise
(
p
:
P
, opts
:
object
)
:
Promise
<
Array
<
Dirent
>
>
readdir
Promise
(
p
:
P
, opts
:
object
)
:
Promise
<
Array
<
Filename
>
|
Array
<
Dirent
>
>
Parameters
p:
P
Returns
Promise
<
Array
<
Filename
>
>
Parameters
p:
P
opts:
object
|
null
Returns
Promise
<
Array
<
Filename
>
>
Parameters
p:
P
opts:
object
with
File
Types
:
true
Returns
Promise
<
Array
<
Dirent
>
>
Parameters
p:
P
opts:
object
with
File
Types
:
boolean
Returns
Promise
<
Array
<
Filename
>
|
Array
<
Dirent
>
>
readdir
Sync
readdir
Sync
(
p
:
P
)
:
Array
<
Filename
>
readdir
Sync
(
p
:
P
, opts
:
object
|
null
)
:
Array
<
Filename
>
readdir
Sync
(
p
:
P
, opts
:
object
)
:
Array
<
Dirent
>
readdir
Sync
(
p
:
P
, opts
:
object
)
:
Array
<
Filename
>
|
Array
<
Dirent
>
Parameters
p:
P
Returns
Array
<
Filename
>
Parameters
p:
P
opts:
object
|
null
Returns
Array
<
Filename
>
Parameters
p:
P
opts:
object
with
File
Types
:
true
Returns
Array
<
Dirent
>
Parameters
p:
P
opts:
object
with
File
Types
:
boolean
Returns
Array
<
Filename
>
|
Array
<
Dirent
>
readlink
Promise
readlink
Promise
(
p
:
P
)
:
Promise
<
P
>
Parameters
p:
P
Returns
Promise
<
P
>
readlink
Sync
readlink
Sync
(
p
:
P
)
:
P
Parameters
p:
P
Returns
P
realpath
Promise
realpath
Promise
(
p
:
P
)
:
Promise
<
P
>
Parameters
p:
P
Returns
Promise
<
P
>
realpath
Sync
realpath
Sync
(
p
:
P
)
:
P
Parameters
p:
P
Returns
P
remove
Promise
remove
Promise
(
p
:
P
, __namedParameters
?:
object
)
:
Promise
<
void
>
Parameters
p:
P
Default value
__namedParameters:
object
= {}
max
Retries
:
number
recursive
:
boolean
Returns
Promise
<
void
>
remove
Sync
remove
Sync
(
p
:
P
, __namedParameters
?:
object
)
:
void
Parameters
p:
P
Default value
__namedParameters:
object
= {}
recursive
:
boolean
Returns
void
rename
Promise
rename
Promise
(
oldP
:
P
, newP
:
P
)
:
Promise
<
void
>
Parameters
oldP:
P
newP:
P
Returns
Promise
<
void
>
rename
Sync
rename
Sync
(
oldP
:
P
, newP
:
P
)
:
void
Parameters
oldP:
P
newP:
P
Returns
void
resolve
resolve
(
path
:
P
)
:
P
Parameters
path:
P
Returns
P
rmdir
Promise
rmdir
Promise
(
p
:
P
, opts
?:
RmdirOptions
)
:
Promise
<
void
>
Parameters
p:
P
Optional
opts:
RmdirOptions
Returns
Promise
<
void
>
rmdir
Sync
rmdir
Sync
(
p
:
P
, opts
?:
RmdirOptions
)
:
void
Parameters
p:
P
Optional
opts:
RmdirOptions
Returns
void
stat
Promise
stat
Promise
(
p
:
P
)
:
Promise
<
Stats
>
stat
Promise
(
p
:
P
, opts
:
StatOptions
&
object
|
undefined
)
:
Promise
<
Stats
>
stat
Promise
(
p
:
P
, opts
:
StatOptions
&
object
)
:
Promise
<
BigIntStats
>
Parameters
p:
P
Returns
Promise
<
Stats
>
Parameters
p:
P
opts:
StatOptions
&
object
|
undefined
Returns
Promise
<
Stats
>
Parameters
p:
P
opts:
StatOptions
&
object
Returns
Promise
<
BigIntStats
>
stat
Sync
stat
Sync
(
p
:
P
)
:
Stats
stat
Sync
(
p
:
P
, opts
?:
StatSyncOptions
&
object
)
:
Stats
|
undefined
stat
Sync
(
p
:
P
, opts
:
StatSyncOptions
&
object
)
:
BigIntStats
|
undefined
stat
Sync
(
p
:
P
, opts
?:
StatSyncOptions
&
object
)
:
Stats
stat
Sync
(
p
:
P
, opts
:
StatSyncOptions
&
object
)
:
BigIntStats
stat
Sync
(
p
:
P
, opts
:
StatSyncOptions
&
object
)
:
Stats
|
BigIntStats
Parameters
p:
P
Returns
Stats
Parameters
p:
P
Optional
opts:
StatSyncOptions
&
object
Returns
Stats
|
undefined
Parameters
p:
P
opts:
StatSyncOptions
&
object
Returns
BigIntStats
|
undefined
Parameters
p:
P
Optional
opts:
StatSyncOptions
&
object
Returns
Stats
Parameters
p:
P
opts:
StatSyncOptions
&
object
Returns
BigIntStats
Parameters
p:
P
opts:
StatSyncOptions
&
object
Returns
Stats
|
BigIntStats
symlink
Promise
symlink
Promise
(
target
:
P
, p
:
P
, type
?:
SymlinkType
)
:
Promise
<
void
>
Parameters
target:
P
p:
P
Optional
type:
SymlinkType
Returns
Promise
<
void
>
symlink
Sync
symlink
Sync
(
target
:
P
, p
:
P
, type
?:
SymlinkType
)
:
void
Parameters
target:
P
p:
P
Optional
type:
SymlinkType
Returns
void
truncate
Promise
truncate
Promise
(
p
:
P
, len
?:
undefined
|
number
)
:
Promise
<
void
>
Parameters
p:
P
Optional
len:
undefined
|
number
Returns
Promise
<
void
>
truncate
Sync
truncate
Sync
(
p
:
P
, len
?:
undefined
|
number
)
:
void
Parameters
p:
P
Optional
len:
undefined
|
number
Returns
void
unlink
Promise
unlink
Promise
(
p
:
P
)
:
Promise
<
void
>
Parameters
p:
P
Returns
Promise
<
void
>
unlink
Sync
unlink
Sync
(
p
:
P
)
:
void
Parameters
p:
P
Returns
void
unwatch
File
unwatch
File
(
p
:
P
, cb
?:
WatchFileCallback
)
:
void
Parameters
p:
P
Optional
cb:
WatchFileCallback
Returns
void
utimes
Promise
utimes
Promise
(
p
:
P
, atime
:
Date
|
string
|
number
, mtime
:
Date
|
string
|
number
)
:
Promise
<
void
>
Parameters
p:
P
atime:
Date
|
string
|
number
mtime:
Date
|
string
|
number
Returns
Promise
<
void
>
utimes
Sync
utimes
Sync
(
p
:
P
, atime
:
Date
|
string
|
number
, mtime
:
Date
|
string
|
number
)
:
void
Parameters
p:
P
atime:
Date
|
string
|
number
mtime:
Date
|
string
|
number
Returns
void
watch
watch
(
p
:
P
, cb
?:
WatchCallback
)
:
Watcher
watch
(
p
:
P
, opts
:
WatchOptions
, cb
?:
WatchCallback
)
:
Watcher
Parameters
p:
P
Optional
cb:
WatchCallback
Returns
Watcher
Parameters
p:
P
opts:
WatchOptions
Optional
cb:
WatchCallback
Returns
Watcher
watch
File
watch
File
(
p
:
P
, cb
:
WatchFileCallback
)
:
StatWatcher
watch
File
(
p
:
P
, opts
:
WatchFileOptions
, cb
:
WatchFileCallback
)
:
StatWatcher
Parameters
p:
P
cb:
WatchFileCallback
Returns
StatWatcher
Parameters
p:
P
opts:
WatchFileOptions
cb:
WatchFileCallback
Returns
StatWatcher
write
File
Promise
write
File
Promise
(
p
:
FSPath
<
P
>
, content
:
string
|
Buffer
|
ArrayBuffer
|
DataView
, opts
?:
WriteFileOptions
)
:
Promise
<
void
>
Parameters
p:
FSPath
<
P
>
content:
string
|
Buffer
|
ArrayBuffer
|
DataView
Optional
opts:
WriteFileOptions
Returns
Promise
<
void
>
write
File
Sync
write
File
Sync
(
p
:
FSPath
<
P
>
, content
:
string
|
Buffer
|
ArrayBuffer
|
DataView
, opts
?:
WriteFileOptions
)
:
void
Parameters
p:
FSPath
<
P
>
content:
string
|
Buffer
|
ArrayBuffer
|
DataView
Optional
opts:
WriteFileOptions
Returns
void
write
Json
Promise
write
Json
Promise
(
p
:
P
, data
:
any
)
:
Promise
<
void
>
Parameters
p:
P
data:
any
Returns
Promise
<
void
>
write
Json
Sync
write
Json
Sync
(
p
:
P
, data
:
any
)
:
void
Parameters
p:
P
data:
any
Returns
void
write
Promise
write
Promise
(
fd
:
number
, buffer
:
Buffer
, offset
?:
undefined
|
number
, length
?:
undefined
|
number
, position
?:
undefined
|
number
)
:
Promise
<
number
>
write
Promise
(
fd
:
number
, buffer
:
string
, position
?:
undefined
|
number
)
:
Promise
<
number
>
Parameters
fd:
number
buffer:
Buffer
Optional
offset:
undefined
|
number
Optional
length:
undefined
|
number
Optional
position:
undefined
|
number
Returns
Promise
<
number
>
Parameters
fd:
number
buffer:
string
Optional
position:
undefined
|
number
Returns
Promise
<
number
>
write
Sync
write
Sync
(
fd
:
number
, buffer
:
Buffer
, offset
?:
undefined
|
number
, length
?:
undefined
|
number
, position
?:
undefined
|
number
)
:
number
write
Sync
(
fd
:
number
, buffer
:
string
, position
?:
undefined
|
number
)
:
number
Parameters
fd:
number
buffer:
Buffer
Optional
offset:
undefined
|
number
Optional
length:
undefined
|
number
Optional
position:
undefined
|
number
Returns
number
Parameters
fd:
number
buffer:
string
Optional
position:
undefined
|
number
Returns
number
"scripts/extract-
hooks"
acceptance-
tests
plugin-
compat
plugin-
constraints
plugin-
dlx
plugin-
essentials
plugin-
exec
plugin-
file
plugin-
git
plugin-
github
plugin-
http
plugin-
init
plugin-
interactive-
tools
plugin-
link
plugin-
nm
plugin-
npm
plugin-
npm-
cli
plugin-
pack
plugin-
patch
plugin-
pnp
plugin-
pnpm
plugin-
stage
plugin-
typescript
plugin-
version
plugin-
workspace-
tools
vscode-
zipfs
yarnpkg-
builder
yarnpkg-
cli
yarnpkg-
core
yarnpkg-
doctor
yarnpkg-
extensions
yarnpkg-
fslib
AliasFS
constructor
base
Fs
path
Utils
target
access
Promise
access
Sync
append
File
Promise
append
File
Sync
change
File
Promise
change
File
Sync
chmod
Promise
chmod
Sync
chown
Promise
chown
Sync
close
Promise
close
Sync
copy
File
Promise
copy
File
Sync
copy
Promise
copy
Sync
create
Read
Stream
create
Write
Stream
exists
Promise
exists
Sync
fchmod
Promise
fchmod
Sync
fchown
Promise
fchown
Sync
fstat
Promise
fstat
Sync
ftruncate
Promise
ftruncate
Sync
gen
Traverse
Promise
get
Base
Fs
get
Extract
Hint
get
Real
Path
link
Promise
link
Sync
lock
Promise
lstat
Promise
lstat
Sync
lutimes
Promise
lutimes
Sync
map
From
Base
map
ToBase
mkdir
Promise
mkdir
Sync
mkdirp
Promise
mkdirp
Sync
move
Promise
move
Sync
open
Promise
open
Sync
opendir
Promise
opendir
Sync
preserve
Time
Promise
preserve
Time
Sync
read
File
Promise
read
File
Sync
read
Json
Promise
read
Json
Sync
read
Promise
read
Sync
readdir
Promise
readdir
Sync
readlink
Promise
readlink
Sync
realpath
Promise
realpath
Sync
remove
Promise
remove
Sync
rename
Promise
rename
Sync
resolve
rmdir
Promise
rmdir
Sync
stat
Promise
stat
Sync
symlink
Promise
symlink
Sync
truncate
Promise
truncate
Sync
unlink
Promise
unlink
Sync
unwatch
File
utimes
Promise
utimes
Sync
watch
watch
File
write
File
Promise
write
File
Sync
write
Json
Promise
write
Json
Sync
write
Promise
write
Sync
yarnpkg-
libui
yarnpkg-
libzip
yarnpkg-
nm
yarnpkg-
parsers
yarnpkg-
pnp
yarnpkg-
pnpify
yarnpkg-
sdks
yarnpkg-
shell
Generated using
TypeDoc
Prefer using
copyPromise
instead