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-pnpify
NodeModulesFS
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 NodeModulesFS
Hierarchy
ProxiedFS
<
NativePath
,
PortablePath
>
NodeModulesFS
Constructors
constructor
Properties
baseFs
pathUtils
Methods
accessPromise
accessSync
appendFilePromise
appendFileSync
changeFilePromise
changeFileSync
checksumFilePromise
chmodPromise
chmodSync
chownPromise
chownSync
closePromise
closeSync
copyFilePromise
copyFileSync
copyPromise
copySync
createReadStream
createWriteStream
existsPromise
existsSync
fchmodPromise
fchmodSync
fchownPromise
fchownSync
fstatPromise
fstatSync
ftruncatePromise
ftruncateSync
genTraversePromise
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
Node
ModulesFS
(
pnp
:
PnpApi
, __namedParameters
?:
object
)
:
NodeModulesFS
Parameters
pnp:
PnpApi
Default value
__namedParameters:
object
= {}
pnpify
Fs
:
boolean
real
Fs
:
"fs"
Returns
NodeModulesFS
Properties
Protected
base
Fs
base
Fs
:
FakeFS
<
PortablePath
>
path
Utils
path
Utils
:
PathUtils
<
NativePath
>
Methods
access
Promise
access
Promise
(
p
:
NativePath
, mode
?:
undefined
|
number
)
:
Promise
<
void
>
Parameters
p:
NativePath
Optional
mode:
undefined
|
number
Returns
Promise
<
void
>
access
Sync
access
Sync
(
p
:
NativePath
, mode
?:
undefined
|
number
)
:
void
Parameters
p:
NativePath
Optional
mode:
undefined
|
number
Returns
void
append
File
Promise
append
File
Promise
(
p
:
FSPath
<
NativePath
>
, content
:
string
|
Uint8Array
, opts
?:
WriteFileOptions
)
:
Promise
<
void
>
Parameters
p:
FSPath
<
NativePath
>
content:
string
|
Uint8Array
Optional
opts:
WriteFileOptions
Returns
Promise
<
void
>
append
File
Sync
append
File
Sync
(
p
:
FSPath
<
NativePath
>
, content
:
string
|
Uint8Array
, opts
?:
WriteFileOptions
)
:
void
Parameters
p:
FSPath
<
NativePath
>
content:
string
|
Uint8Array
Optional
opts:
WriteFileOptions
Returns
void
change
File
Promise
change
File
Promise
(
p
:
NativePath
, content
:
Buffer
)
:
Promise
<
void
>
change
File
Promise
(
p
:
NativePath
, content
:
string
, opts
?:
ChangeFileOptions
)
:
Promise
<
void
>
Parameters
p:
NativePath
content:
Buffer
Returns
Promise
<
void
>
Parameters
p:
NativePath
content:
string
Optional
opts:
ChangeFileOptions
Returns
Promise
<
void
>
change
File
Sync
change
File
Sync
(
p
:
NativePath
, content
:
Buffer
)
:
void
change
File
Sync
(
p
:
NativePath
, content
:
string
, opts
?:
ChangeFileOptions
)
:
void
Parameters
p:
NativePath
content:
Buffer
Returns
void
Parameters
p:
NativePath
content:
string
Optional
opts:
ChangeFileOptions
Returns
void
checksum
File
Promise
checksum
File
Promise
(
path
:
NativePath
, __namedParameters
?:
object
)
:
Promise
<
string
>
Parameters
path:
NativePath
Default value
__namedParameters:
object
= {}
algorithm
:
string
Returns
Promise
<
string
>
chmod
Promise
chmod
Promise
(
p
:
NativePath
, mask
:
number
)
:
Promise
<
void
>
Parameters
p:
NativePath
mask:
number
Returns
Promise
<
void
>
chmod
Sync
chmod
Sync
(
p
:
NativePath
, mask
:
number
)
:
void
Parameters
p:
NativePath
mask:
number
Returns
void
chown
Promise
chown
Promise
(
p
:
NativePath
, uid
:
number
, gid
:
number
)
:
Promise
<
void
>
Parameters
p:
NativePath
uid:
number
gid:
number
Returns
Promise
<
void
>
chown
Sync
chown
Sync
(
p
:
NativePath
, uid
:
number
, gid
:
number
)
:
void
Parameters
p:
NativePath
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
:
NativePath
, destP
:
NativePath
, flags
?:
number
)
:
Promise
<
void
>
Parameters
sourceP:
NativePath
destP:
NativePath
Default value
flags:
number
= 0
Returns
Promise
<
void
>
copy
File
Sync
copy
File
Sync
(
sourceP
:
NativePath
, destP
:
NativePath
, flags
?:
number
)
:
void
Parameters
sourceP:
NativePath
destP:
NativePath
Default value
flags:
number
= 0
Returns
void
copy
Promise
copy
Promise
(
destination
:
NativePath
, source
:
NativePath
, options
?:
undefined
|
object
)
:
Promise
<
void
>
copy
Promise<P2>
(
destination
:
NativePath
, source
:
P2
, options
:
object
)
:
Promise
<
void
>
Parameters
destination:
NativePath
source:
NativePath
Optional
options:
undefined
|
object
Returns
Promise
<
void
>
Type parameters
P2
:
Path
Parameters
destination:
NativePath
source:
P2
options:
object
base
Fs
:
FakeFS
<
P2
>
Optional
link
Strategy
?:
LinkStrategy
<
NativePath
>
|
null
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
:
NativePath
, source
:
NativePath
, options
?:
undefined
|
object
)
:
void
copy
Sync<P2>
(
destination
:
NativePath
, source
:
P2
, options
:
object
)
:
void
deprecated
Prefer using
copyPromise
instead
Parameters
destination:
NativePath
source:
NativePath
Optional
options:
undefined
|
object
Returns
void
Type parameters
P2
:
Path
Parameters
destination:
NativePath
source:
P2
options:
object
base
Fs
:
FakeFS
<
P2
>
Optional
overwrite
?:
undefined
|
false
|
true
Returns
void
create
Read
Stream
create
Read
Stream
(
p
:
NativePath
|
null
, opts
?:
CreateReadStreamOptions
)
:
ReadStream
Parameters
p:
NativePath
|
null
Optional
opts:
CreateReadStreamOptions
Returns
ReadStream
create
Write
Stream
create
Write
Stream
(
p
:
NativePath
|
null
, opts
?:
CreateWriteStreamOptions
)
:
WriteStream
Parameters
p:
NativePath
|
null
Optional
opts:
CreateWriteStreamOptions
Returns
WriteStream
exists
Promise
exists
Promise
(
p
:
NativePath
)
:
Promise
<
boolean
>
Parameters
p:
NativePath
Returns
Promise
<
boolean
>
exists
Sync
exists
Sync
(
p
:
NativePath
)
:
boolean
Parameters
p:
NativePath
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
:
NativePath
, __namedParameters
?:
object
)
:
AsyncGenerator
<
P
,
void
,
unknown
>
Parameters
init:
NativePath
Default value
__namedParameters:
object
= {}
stable
Sort
:
boolean
Returns
AsyncGenerator
<
P
,
void
,
unknown
>
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
:
NativePath
, newP
:
NativePath
)
:
Promise
<
void
>
Parameters
existingP:
NativePath
newP:
NativePath
Returns
Promise
<
void
>
link
Sync
link
Sync
(
existingP
:
NativePath
, newP
:
NativePath
)
:
void
Parameters
existingP:
NativePath
newP:
NativePath
Returns
void
lock
Promise
lock
Promise<T>
(
affectedPath
:
NativePath
, callback
:
function
)
:
Promise
<
T
>
Type parameters
T
Parameters
affectedPath:
NativePath
callback:
function
(
)
:
Promise
<
T
>
Returns
Promise
<
T
>
Returns
Promise
<
T
>
lstat
Promise
lstat
Promise
(
p
:
NativePath
)
:
Promise
<
Stats
>
lstat
Promise
(
p
:
NativePath
, opts
:
StatOptions
&
object
|
undefined
)
:
Promise
<
Stats
>
lstat
Promise
(
p
:
NativePath
, opts
:
StatOptions
&
object
)
:
Promise
<
BigIntStats
>
Parameters
p:
NativePath
Returns
Promise
<
Stats
>
Parameters
p:
NativePath
opts:
StatOptions
&
object
|
undefined
Returns
Promise
<
Stats
>
Parameters
p:
NativePath
opts:
StatOptions
&
object
Returns
Promise
<
BigIntStats
>
lstat
Sync
lstat
Sync
(
p
:
NativePath
)
:
Stats
lstat
Sync
(
p
:
NativePath
, opts
?:
StatSyncOptions
&
object
)
:
Stats
|
undefined
lstat
Sync
(
p
:
NativePath
, opts
:
StatSyncOptions
&
object
)
:
BigIntStats
|
undefined
lstat
Sync
(
p
:
NativePath
, opts
?:
StatSyncOptions
&
object
)
:
Stats
lstat
Sync
(
p
:
NativePath
, opts
:
StatSyncOptions
&
object
)
:
BigIntStats
lstat
Sync
(
p
:
NativePath
, opts
:
StatSyncOptions
&
object
)
:
Stats
|
BigIntStats
Parameters
p:
NativePath
Returns
Stats
Parameters
p:
NativePath
Optional
opts:
StatSyncOptions
&
object
Returns
Stats
|
undefined
Parameters
p:
NativePath
opts:
StatSyncOptions
&
object
Returns
BigIntStats
|
undefined
Parameters
p:
NativePath
Optional
opts:
StatSyncOptions
&
object
Returns
Stats
Parameters
p:
NativePath
opts:
StatSyncOptions
&
object
Returns
BigIntStats
Parameters
p:
NativePath
opts:
StatSyncOptions
&
object
Returns
Stats
|
BigIntStats
lutimes
Promise
lutimes
Promise
(
p
:
NativePath
, atime
:
Date
|
string
|
number
, mtime
:
Date
|
string
|
number
)
:
Promise
<
void
>
Parameters
p:
NativePath
atime:
Date
|
string
|
number
mtime:
Date
|
string
|
number
Returns
Promise
<
void
>
lutimes
Sync
lutimes
Sync
(
p
:
NativePath
, atime
:
Date
|
string
|
number
, mtime
:
Date
|
string
|
number
)
:
void
Parameters
p:
NativePath
atime:
Date
|
string
|
number
mtime:
Date
|
string
|
number
Returns
void
Protected
map
From
Base
map
From
Base
(
path
:
PortablePath
)
:
string
&
object
Parameters
path:
PortablePath
Returns
string
&
object
Protected
map
ToBase
map
ToBase
(
path
:
NativePath
)
:
string
&
object
Parameters
path:
NativePath
Returns
string
&
object
mkdir
Promise
mkdir
Promise
(
p
:
NativePath
, opts
?:
MkdirOptions
)
:
Promise
<
undefined
|
string
>
Parameters
p:
NativePath
Optional
opts:
MkdirOptions
Returns
Promise
<
undefined
|
string
>
mkdir
Sync
mkdir
Sync
(
p
:
NativePath
, opts
?:
MkdirOptions
)
:
undefined
|
string
Parameters
p:
NativePath
Optional
opts:
MkdirOptions
Returns
undefined
|
string
mkdirp
Promise
mkdirp
Promise
(
p
:
NativePath
, __namedParameters
?:
object
)
:
Promise
<
string
|
undefined
>
Parameters
p:
NativePath
Default value
__namedParameters:
object
= {}
chmod
:
undefined
|
number
utimes
:
undefined
|
[
string
|
number
|
Date
,
string
|
number
|
Date
]
Returns
Promise
<
string
|
undefined
>
mkdirp
Sync
mkdirp
Sync
(
p
:
NativePath
, __namedParameters
?:
object
)
:
string
|
undefined
Parameters
p:
NativePath
Default value
__namedParameters:
object
= {}
chmod
:
undefined
|
number
utimes
:
undefined
|
[
string
|
number
|
Date
,
string
|
number
|
Date
]
Returns
string
|
undefined
move
Promise
move
Promise
(
fromP
:
NativePath
, toP
:
NativePath
)
:
Promise
<
void
>
Parameters
fromP:
NativePath
toP:
NativePath
Returns
Promise
<
void
>
move
Sync
move
Sync
(
fromP
:
NativePath
, toP
:
NativePath
)
:
void
Parameters
fromP:
NativePath
toP:
NativePath
Returns
void
open
Promise
open
Promise
(
p
:
NativePath
, flags
:
string
, mode
?:
undefined
|
number
)
:
Promise
<
number
>
Parameters
p:
NativePath
flags:
string
Optional
mode:
undefined
|
number
Returns
Promise
<
number
>
open
Sync
open
Sync
(
p
:
NativePath
, flags
:
string
, mode
?:
undefined
|
number
)
:
number
Parameters
p:
NativePath
flags:
string
Optional
mode:
undefined
|
number
Returns
number
opendir
Promise
opendir
Promise
(
p
:
NativePath
, opts
?:
OpendirOptions
)
:
Promise
<
Dir
<
NativePath
>
>
Parameters
p:
NativePath
Optional
opts:
OpendirOptions
Returns
Promise
<
Dir
<
NativePath
>
>
opendir
Sync
opendir
Sync
(
p
:
NativePath
, opts
?:
OpendirOptions
)
:
Dir
<
NativePath
>
Parameters
p:
NativePath
Optional
opts:
OpendirOptions
Returns
Dir
<
NativePath
>
preserve
Time
Promise
preserve
Time
Promise
(
p
:
NativePath
, cb
:
function
)
:
Promise
<
void
>
Parameters
p:
NativePath
cb:
function
(
)
:
Promise
<
NativePath
|
void
>
Returns
Promise
<
NativePath
|
void
>
Returns
Promise
<
void
>
preserve
Time
Sync
preserve
Time
Sync
(
p
:
NativePath
, cb
:
function
)
:
Promise
<
void
>
Parameters
p:
NativePath
cb:
function
(
)
:
NativePath
|
void
Returns
NativePath
|
void
Returns
Promise
<
void
>
read
File
Promise
read
File
Promise
(
p
:
FSPath
<
NativePath
>
, encoding
?:
undefined
|
null
)
:
Promise
<
Buffer
>
read
File
Promise
(
p
:
FSPath
<
NativePath
>
, encoding
:
BufferEncoding
)
:
Promise
<
string
>
read
File
Promise
(
p
:
FSPath
<
NativePath
>
, encoding
?:
BufferEncoding
|
null
)
:
Promise
<
Buffer
|
string
>
Parameters
p:
FSPath
<
NativePath
>
Optional
encoding:
undefined
|
null
Returns
Promise
<
Buffer
>
Parameters
p:
FSPath
<
NativePath
>
encoding:
BufferEncoding
Returns
Promise
<
string
>
Parameters
p:
FSPath
<
NativePath
>
Optional
encoding:
BufferEncoding
|
null
Returns
Promise
<
Buffer
|
string
>
read
File
Sync
read
File
Sync
(
p
:
FSPath
<
NativePath
>
, encoding
?:
undefined
|
null
)
:
Buffer
read
File
Sync
(
p
:
FSPath
<
NativePath
>
, encoding
:
BufferEncoding
)
:
string
read
File
Sync
(
p
:
FSPath
<
NativePath
>
, encoding
?:
BufferEncoding
|
null
)
:
Buffer
|
string
Parameters
p:
FSPath
<
NativePath
>
Optional
encoding:
undefined
|
null
Returns
Buffer
Parameters
p:
FSPath
<
NativePath
>
encoding:
BufferEncoding
Returns
string
Parameters
p:
FSPath
<
NativePath
>
Optional
encoding:
BufferEncoding
|
null
Returns
Buffer
|
string
read
Json
Promise
read
Json
Promise
(
p
:
NativePath
)
:
Promise
<
any
>
Parameters
p:
NativePath
Returns
Promise
<
any
>
read
Json
Sync
read
Json
Sync
(
p
:
NativePath
)
:
any
Parameters
p:
NativePath
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
:
NativePath
)
:
Promise
<
Array
<
Filename
>
>
readdir
Promise
(
p
:
NativePath
, opts
:
object
|
null
)
:
Promise
<
Array
<
Filename
>
>
readdir
Promise
(
p
:
NativePath
, opts
:
object
)
:
Promise
<
Array
<
Dirent
>
>
readdir
Promise
(
p
:
NativePath
, opts
:
object
)
:
Promise
<
Array
<
Filename
>
|
Array
<
Dirent
>
>
Parameters
p:
NativePath
Returns
Promise
<
Array
<
Filename
>
>
Parameters
p:
NativePath
opts:
object
|
null
Returns
Promise
<
Array
<
Filename
>
>
Parameters
p:
NativePath
opts:
object
with
File
Types
:
true
Returns
Promise
<
Array
<
Dirent
>
>
Parameters
p:
NativePath
opts:
object
with
File
Types
:
boolean
Returns
Promise
<
Array
<
Filename
>
|
Array
<
Dirent
>
>
readdir
Sync
readdir
Sync
(
p
:
NativePath
)
:
Array
<
Filename
>
readdir
Sync
(
p
:
NativePath
, opts
:
object
|
null
)
:
Array
<
Filename
>
readdir
Sync
(
p
:
NativePath
, opts
:
object
)
:
Array
<
Dirent
>
readdir
Sync
(
p
:
NativePath
, opts
:
object
)
:
Array
<
Filename
>
|
Array
<
Dirent
>
Parameters
p:
NativePath
Returns
Array
<
Filename
>
Parameters
p:
NativePath
opts:
object
|
null
Returns
Array
<
Filename
>
Parameters
p:
NativePath
opts:
object
with
File
Types
:
true
Returns
Array
<
Dirent
>
Parameters
p:
NativePath
opts:
object
with
File
Types
:
boolean
Returns
Array
<
Filename
>
|
Array
<
Dirent
>
readlink
Promise
readlink
Promise
(
p
:
NativePath
)
:
Promise
<
P
>
Parameters
p:
NativePath
Returns
Promise
<
P
>
readlink
Sync
readlink
Sync
(
p
:
NativePath
)
:
P
Parameters
p:
NativePath
Returns
P
realpath
Promise
realpath
Promise
(
p
:
NativePath
)
:
Promise
<
P
>
Parameters
p:
NativePath
Returns
Promise
<
P
>
realpath
Sync
realpath
Sync
(
p
:
NativePath
)
:
P
Parameters
p:
NativePath
Returns
P
remove
Promise
remove
Promise
(
p
:
NativePath
, __namedParameters
?:
object
)
:
Promise
<
void
>
Parameters
p:
NativePath
Default value
__namedParameters:
object
= {}
max
Retries
:
number
recursive
:
boolean
Returns
Promise
<
void
>
remove
Sync
remove
Sync
(
p
:
NativePath
, __namedParameters
?:
object
)
:
void
Parameters
p:
NativePath
Default value
__namedParameters:
object
= {}
recursive
:
boolean
Returns
void
rename
Promise
rename
Promise
(
oldP
:
NativePath
, newP
:
NativePath
)
:
Promise
<
void
>
Parameters
oldP:
NativePath
newP:
NativePath
Returns
Promise
<
void
>
rename
Sync
rename
Sync
(
oldP
:
NativePath
, newP
:
NativePath
)
:
void
Parameters
oldP:
NativePath
newP:
NativePath
Returns
void
resolve
resolve
(
path
:
NativePath
)
:
P
Parameters
path:
NativePath
Returns
P
rmdir
Promise
rmdir
Promise
(
p
:
NativePath
, opts
?:
RmdirOptions
)
:
Promise
<
void
>
Parameters
p:
NativePath
Optional
opts:
RmdirOptions
Returns
Promise
<
void
>
rmdir
Sync
rmdir
Sync
(
p
:
NativePath
, opts
?:
RmdirOptions
)
:
void
Parameters
p:
NativePath
Optional
opts:
RmdirOptions
Returns
void
stat
Promise
stat
Promise
(
p
:
NativePath
)
:
Promise
<
Stats
>
stat
Promise
(
p
:
NativePath
, opts
:
StatOptions
&
object
|
undefined
)
:
Promise
<
Stats
>
stat
Promise
(
p
:
NativePath
, opts
:
StatOptions
&
object
)
:
Promise
<
BigIntStats
>
Parameters
p:
NativePath
Returns
Promise
<
Stats
>
Parameters
p:
NativePath
opts:
StatOptions
&
object
|
undefined
Returns
Promise
<
Stats
>
Parameters
p:
NativePath
opts:
StatOptions
&
object
Returns
Promise
<
BigIntStats
>
stat
Sync
stat
Sync
(
p
:
NativePath
)
:
Stats
stat
Sync
(
p
:
NativePath
, opts
?:
StatSyncOptions
&
object
)
:
Stats
|
undefined
stat
Sync
(
p
:
NativePath
, opts
:
StatSyncOptions
&
object
)
:
BigIntStats
|
undefined
stat
Sync
(
p
:
NativePath
, opts
?:
StatSyncOptions
&
object
)
:
Stats
stat
Sync
(
p
:
NativePath
, opts
:
StatSyncOptions
&
object
)
:
BigIntStats
stat
Sync
(
p
:
NativePath
, opts
:
StatSyncOptions
&
object
)
:
Stats
|
BigIntStats
Parameters
p:
NativePath
Returns
Stats
Parameters
p:
NativePath
Optional
opts:
StatSyncOptions
&
object
Returns
Stats
|
undefined
Parameters
p:
NativePath
opts:
StatSyncOptions
&
object
Returns
BigIntStats
|
undefined
Parameters
p:
NativePath
Optional
opts:
StatSyncOptions
&
object
Returns
Stats
Parameters
p:
NativePath
opts:
StatSyncOptions
&
object
Returns
BigIntStats
Parameters
p:
NativePath
opts:
StatSyncOptions
&
object
Returns
Stats
|
BigIntStats
symlink
Promise
symlink
Promise
(
target
:
NativePath
, p
:
NativePath
, type
?:
SymlinkType
)
:
Promise
<
void
>
Parameters
target:
NativePath
p:
NativePath
Optional
type:
SymlinkType
Returns
Promise
<
void
>
symlink
Sync
symlink
Sync
(
target
:
NativePath
, p
:
NativePath
, type
?:
SymlinkType
)
:
void
Parameters
target:
NativePath
p:
NativePath
Optional
type:
SymlinkType
Returns
void
truncate
Promise
truncate
Promise
(
p
:
NativePath
, len
?:
undefined
|
number
)
:
Promise
<
void
>
Parameters
p:
NativePath
Optional
len:
undefined
|
number
Returns
Promise
<
void
>
truncate
Sync
truncate
Sync
(
p
:
NativePath
, len
?:
undefined
|
number
)
:
void
Parameters
p:
NativePath
Optional
len:
undefined
|
number
Returns
void
unlink
Promise
unlink
Promise
(
p
:
NativePath
)
:
Promise
<
void
>
Parameters
p:
NativePath
Returns
Promise
<
void
>
unlink
Sync
unlink
Sync
(
p
:
NativePath
)
:
void
Parameters
p:
NativePath
Returns
void
unwatch
File
unwatch
File
(
p
:
NativePath
, cb
?:
WatchFileCallback
)
:
void
Parameters
p:
NativePath
Optional
cb:
WatchFileCallback
Returns
void
utimes
Promise
utimes
Promise
(
p
:
NativePath
, atime
:
Date
|
string
|
number
, mtime
:
Date
|
string
|
number
)
:
Promise
<
void
>
Parameters
p:
NativePath
atime:
Date
|
string
|
number
mtime:
Date
|
string
|
number
Returns
Promise
<
void
>
utimes
Sync
utimes
Sync
(
p
:
NativePath
, atime
:
Date
|
string
|
number
, mtime
:
Date
|
string
|
number
)
:
void
Parameters
p:
NativePath
atime:
Date
|
string
|
number
mtime:
Date
|
string
|
number
Returns
void
watch
watch
(
p
:
NativePath
, cb
?:
WatchCallback
)
:
Watcher
watch
(
p
:
NativePath
, opts
:
WatchOptions
, cb
?:
WatchCallback
)
:
Watcher
Parameters
p:
NativePath
Optional
cb:
WatchCallback
Returns
Watcher
Parameters
p:
NativePath
opts:
WatchOptions
Optional
cb:
WatchCallback
Returns
Watcher
watch
File
watch
File
(
p
:
NativePath
, cb
:
WatchFileCallback
)
:
StatWatcher
watch
File
(
p
:
NativePath
, opts
:
WatchFileOptions
, cb
:
WatchFileCallback
)
:
StatWatcher
Parameters
p:
NativePath
cb:
WatchFileCallback
Returns
StatWatcher
Parameters
p:
NativePath
opts:
WatchFileOptions
cb:
WatchFileCallback
Returns
StatWatcher
write
File
Promise
write
File
Promise
(
p
:
FSPath
<
NativePath
>
, content
:
string
|
NodeJS.ArrayBufferView
, opts
?:
WriteFileOptions
)
:
Promise
<
void
>
Parameters
p:
FSPath
<
NativePath
>
content:
string
|
NodeJS.ArrayBufferView
Optional
opts:
WriteFileOptions
Returns
Promise
<
void
>
write
File
Sync
write
File
Sync
(
p
:
FSPath
<
NativePath
>
, content
:
string
|
NodeJS.ArrayBufferView
, opts
?:
WriteFileOptions
)
:
void
Parameters
p:
FSPath
<
NativePath
>
content:
string
|
NodeJS.ArrayBufferView
Optional
opts:
WriteFileOptions
Returns
void
write
Json
Promise
write
Json
Promise
(
p
:
NativePath
, data
:
any
)
:
Promise
<
void
>
Parameters
p:
NativePath
data:
any
Returns
Promise
<
void
>
write
Json
Sync
write
Json
Sync
(
p
:
NativePath
, data
:
any
)
:
void
Parameters
p:
NativePath
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
yarnpkg-
pnpify
Link
Type
Node
ModulesFS
constructor
base
Fs
path
Utils
access
Promise
access
Sync
append
File
Promise
append
File
Sync
change
File
Promise
change
File
Sync
checksum
File
Promise
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
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
Portable
Node
ModulesFS
Run
Command
Sdk
Command
Watch
Event
Emitter
Watch
Manager
Directory
Watcher
Portable
Node
ModulesFSOptions
Resolved
Path
Directory
Watcher
Map
Node
ModulesFSOptions
NODE_
MODULES
WRITE_
FLAGS_
REGEX
cli
dynamic
Require
fs
Patched
pnp
dynamic
Require
NoCache
patch
Fs
resolve
Node
Modules
Path
Generated using
TypeDoc
Prefer using
copyPromise
instead