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
PortableNodeModulesFS
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 PortableNodeModulesFS
Hierarchy
FakeFS
<
PortablePath
>
PortableNodeModulesFS
Constructors
constructor
Properties
baseFs
nodeModulesTree
options
pathUtils
pnpFilePath
watchManager
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
getBaseFs
getExtractHint
getRealPath
linkPromise
linkSync
lockPromise
lstatPromise
lstatSync
lutimesPromise
lutimesSync
mkdirPromise
mkdirSync
mkdirpPromise
mkdirpSync
movePromise
moveSync
openPromise
openSync
opendirPromise
opendirSync
persistPath
persistVirtualParentFolder
preserveTimePromise
preserveTimeSync
readFilePromise
readFileSync
readJsonPromise
readJsonSync
readPromise
readSync
readdirPromise
readdirSync
readlinkPromise
readlinkSync
realpathPromise
realpathSync
removePromise
removeSync
renamePromise
renameSync
resolve
resolveDirOrFilePath
resolveFilePath
resolveLink
resolvePath
rmdirPromise
rmdirSync
statPromise
statSync
symlinkPromise
symlinkSync
truncatePromise
truncateSync
unlinkPromise
unlinkSync
unwatchFile
utimesPromise
utimesSync
watch
watchFile
watchPnpFile
writeFilePromise
writeFileSync
writeJsonPromise
writeJsonSync
writePromise
writeSync
makeSymlinkStats
Constructors
constructor
new
Portable
Node
ModulesFS
(
pnp
:
PnpApi
, __namedParameters
?:
object
)
:
PortableNodeModulesFS
Parameters
pnp:
PnpApi
Default value
__namedParameters:
object
= {}
base
Fs
:
FakeFS
<
string
&
object
>
pnpify
Fs
:
boolean
Returns
PortableNodeModulesFS
Properties
Private
base
Fs
base
Fs
:
FakeFS
<
PortablePath
>
Private
node
Modules
Tree
node
Modules
Tree
:
NodeModulesTree
Private
options
options
:
PortableNodeModulesFSOptions
path
Utils
path
Utils
:
PathUtils
<
PortablePath
>
Private
pnp
File
Path
pnp
File
Path
:
PortablePath
Private
watch
Manager
watch
Manager
:
WatchManager
Methods
access
Promise
access
Promise
(
p
:
PortablePath
, mode
?:
undefined
|
number
)
:
Promise
<
void
>
Parameters
p:
PortablePath
Optional
mode:
undefined
|
number
Returns
Promise
<
void
>
access
Sync
access
Sync
(
p
:
PortablePath
, mode
?:
undefined
|
number
)
:
void
Parameters
p:
PortablePath
Optional
mode:
undefined
|
number
Returns
void
append
File
Promise
append
File
Promise
(
p
:
FSPath
<
PortablePath
>
, content
:
string
|
Uint8Array
, opts
?:
WriteFileOptions
)
:
Promise
<
void
>
Parameters
p:
FSPath
<
PortablePath
>
content:
string
|
Uint8Array
Optional
opts:
WriteFileOptions
Returns
Promise
<
void
>
append
File
Sync
append
File
Sync
(
p
:
FSPath
<
PortablePath
>
, content
:
string
|
Uint8Array
, opts
?:
WriteFileOptions
)
:
void
Parameters
p:
FSPath
<
PortablePath
>
content:
string
|
Uint8Array
Optional
opts:
WriteFileOptions
Returns
void
change
File
Promise
change
File
Promise
(
p
:
PortablePath
, content
:
Buffer
)
:
Promise
<
void
>
change
File
Promise
(
p
:
PortablePath
, content
:
string
, opts
?:
ChangeFileOptions
)
:
Promise
<
void
>
Parameters
p:
PortablePath
content:
Buffer
Returns
Promise
<
void
>
Parameters
p:
PortablePath
content:
string
Optional
opts:
ChangeFileOptions
Returns
Promise
<
void
>
change
File
Sync
change
File
Sync
(
p
:
PortablePath
, content
:
Buffer
)
:
void
change
File
Sync
(
p
:
PortablePath
, content
:
string
, opts
?:
ChangeFileOptions
)
:
void
Parameters
p:
PortablePath
content:
Buffer
Returns
void
Parameters
p:
PortablePath
content:
string
Optional
opts:
ChangeFileOptions
Returns
void
checksum
File
Promise
checksum
File
Promise
(
path
:
PortablePath
, __namedParameters
?:
object
)
:
Promise
<
string
>
Parameters
path:
PortablePath
Default value
__namedParameters:
object
= {}
algorithm
:
string
Returns
Promise
<
string
>
chmod
Promise
chmod
Promise
(
p
:
PortablePath
, mask
:
number
)
:
Promise
<
void
>
Parameters
p:
PortablePath
mask:
number
Returns
Promise
<
void
>
chmod
Sync
chmod
Sync
(
p
:
PortablePath
, mask
:
number
)
:
void
Parameters
p:
PortablePath
mask:
number
Returns
void
chown
Promise
chown
Promise
(
p
:
PortablePath
, uid
:
number
, gid
:
number
)
:
Promise
<
void
>
Parameters
p:
PortablePath
uid:
number
gid:
number
Returns
Promise
<
void
>
chown
Sync
chown
Sync
(
p
:
PortablePath
, uid
:
number
, gid
:
number
)
:
void
Parameters
p:
PortablePath
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
:
PortablePath
, destP
:
PortablePath
, flags
?:
undefined
|
number
)
:
Promise
<
void
>
Parameters
sourceP:
PortablePath
destP:
PortablePath
Optional
flags:
undefined
|
number
Returns
Promise
<
void
>
copy
File
Sync
copy
File
Sync
(
sourceP
:
PortablePath
, destP
:
PortablePath
, flags
?:
undefined
|
number
)
:
void
Parameters
sourceP:
PortablePath
destP:
PortablePath
Optional
flags:
undefined
|
number
Returns
void
copy
Promise
copy
Promise
(
destination
:
PortablePath
, source
:
PortablePath
, options
?:
undefined
|
object
)
:
Promise
<
void
>
copy
Promise<P2>
(
destination
:
PortablePath
, source
:
P2
, options
:
object
)
:
Promise
<
void
>
Parameters
destination:
PortablePath
source:
PortablePath
Optional
options:
undefined
|
object
Returns
Promise
<
void
>
Type parameters
P2
:
Path
Parameters
destination:
PortablePath
source:
P2
options:
object
base
Fs
:
FakeFS
<
P2
>
Optional
link
Strategy
?:
LinkStrategy
<
PortablePath
>
|
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
:
PortablePath
, source
:
PortablePath
, options
?:
undefined
|
object
)
:
void
copy
Sync<P2>
(
destination
:
PortablePath
, source
:
P2
, options
:
object
)
:
void
deprecated
Prefer using
copyPromise
instead
Parameters
destination:
PortablePath
source:
PortablePath
Optional
options:
undefined
|
object
Returns
void
Type parameters
P2
:
Path
Parameters
destination:
PortablePath
source:
P2
options:
object
base
Fs
:
FakeFS
<
P2
>
Optional
overwrite
?:
undefined
|
false
|
true
Returns
void
create
Read
Stream
create
Read
Stream
(
p
:
PortablePath
|
null
, opts
?:
CreateReadStreamOptions
)
:
ReadStream
Parameters
p:
PortablePath
|
null
Optional
opts:
CreateReadStreamOptions
Returns
ReadStream
create
Write
Stream
create
Write
Stream
(
p
:
PortablePath
|
null
, opts
?:
CreateWriteStreamOptions
)
:
WriteStream
Parameters
p:
PortablePath
|
null
Optional
opts:
CreateWriteStreamOptions
Returns
WriteStream
exists
Promise
exists
Promise
(
p
:
PortablePath
)
:
Promise
<
boolean
>
Parameters
p:
PortablePath
Returns
Promise
<
boolean
>
exists
Sync
exists
Sync
(
p
:
PortablePath
)
:
boolean
Parameters
p:
PortablePath
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
:
PortablePath
, __namedParameters
?:
object
)
:
AsyncGenerator
<
P
,
void
,
unknown
>
Parameters
init:
PortablePath
Default value
__namedParameters:
object
= {}
stable
Sort
:
boolean
Returns
AsyncGenerator
<
P
,
void
,
unknown
>
get
Base
Fs
get
Base
Fs
(
)
:
FakeFS
<
string
&
object
>
Returns
FakeFS
<
string
&
object
>
get
Extract
Hint
get
Extract
Hint
(
hints
:
ExtractHintOptions
)
:
boolean
Parameters
hints:
ExtractHintOptions
Returns
boolean
get
Real
Path
get
Real
Path
(
)
:
string
&
object
Returns
string
&
object
link
Promise
link
Promise
(
existingP
:
PortablePath
, newP
:
PortablePath
)
:
Promise
<
void
>
Parameters
existingP:
PortablePath
newP:
PortablePath
Returns
Promise
<
void
>
link
Sync
link
Sync
(
existingP
:
PortablePath
, newP
:
PortablePath
)
:
void
Parameters
existingP:
PortablePath
newP:
PortablePath
Returns
void
lock
Promise
lock
Promise<T>
(
affectedPath
:
PortablePath
, callback
:
function
)
:
Promise
<
T
>
Type parameters
T
Parameters
affectedPath:
PortablePath
callback:
function
(
)
:
Promise
<
T
>
Returns
Promise
<
T
>
Returns
Promise
<
T
>
lstat
Promise
lstat
Promise
(
p
:
PortablePath
)
:
Promise
<
Stats
>
lstat
Promise
(
p
:
PortablePath
, opts
:
object
)
:
Promise
<
BigIntStats
>
lstat
Promise
(
p
:
PortablePath
, opts
?:
undefined
|
object
)
:
Promise
<
BigIntStats
|
Stats
>
Parameters
p:
PortablePath
Returns
Promise
<
Stats
>
Parameters
p:
PortablePath
opts:
object
bigint
:
true
Returns
Promise
<
BigIntStats
>
Parameters
p:
PortablePath
Optional
opts:
undefined
|
object
Returns
Promise
<
BigIntStats
|
Stats
>
lstat
Sync
lstat
Sync
(
p
:
PortablePath
)
:
Stats
lstat
Sync
(
p
:
PortablePath
, opts
:
object
)
:
BigIntStats
lstat
Sync
(
p
:
PortablePath
, opts
?:
undefined
|
object
)
:
BigIntStats
|
Stats
Parameters
p:
PortablePath
Returns
Stats
Parameters
p:
PortablePath
opts:
object
bigint
:
true
Returns
BigIntStats
Parameters
p:
PortablePath
Optional
opts:
undefined
|
object
Returns
BigIntStats
|
Stats
lutimes
Promise
lutimes
Promise
(
p
:
PortablePath
, atime
:
Date
|
string
|
number
, mtime
:
Date
|
string
|
number
)
:
Promise
<
void
>
Parameters
p:
PortablePath
atime:
Date
|
string
|
number
mtime:
Date
|
string
|
number
Returns
Promise
<
void
>
lutimes
Sync
lutimes
Sync
(
p
:
PortablePath
, atime
:
Date
|
string
|
number
, mtime
:
Date
|
string
|
number
)
:
void
Parameters
p:
PortablePath
atime:
Date
|
string
|
number
mtime:
Date
|
string
|
number
Returns
void
mkdir
Promise
mkdir
Promise
(
p
:
PortablePath
, opts
:
MkdirOptions
)
:
Promise
<
undefined
|
string
>
Parameters
p:
PortablePath
opts:
MkdirOptions
Returns
Promise
<
undefined
|
string
>
mkdir
Sync
mkdir
Sync
(
p
:
PortablePath
, opts
:
MkdirOptions
)
:
undefined
|
string
Parameters
p:
PortablePath
opts:
MkdirOptions
Returns
undefined
|
string
mkdirp
Promise
mkdirp
Promise
(
p
:
PortablePath
, __namedParameters
?:
object
)
:
Promise
<
string
|
undefined
>
Parameters
p:
PortablePath
Default value
__namedParameters:
object
= {}
chmod
:
undefined
|
number
utimes
:
undefined
|
[
string
|
number
|
Date
,
string
|
number
|
Date
]
Returns
Promise
<
string
|
undefined
>
mkdirp
Sync
mkdirp
Sync
(
p
:
PortablePath
, __namedParameters
?:
object
)
:
string
|
undefined
Parameters
p:
PortablePath
Default value
__namedParameters:
object
= {}
chmod
:
undefined
|
number
utimes
:
undefined
|
[
string
|
number
|
Date
,
string
|
number
|
Date
]
Returns
string
|
undefined
move
Promise
move
Promise
(
fromP
:
PortablePath
, toP
:
PortablePath
)
:
Promise
<
void
>
Parameters
fromP:
PortablePath
toP:
PortablePath
Returns
Promise
<
void
>
move
Sync
move
Sync
(
fromP
:
PortablePath
, toP
:
PortablePath
)
:
void
Parameters
fromP:
PortablePath
toP:
PortablePath
Returns
void
open
Promise
open
Promise
(
p
:
PortablePath
, flags
:
string
, mode
?:
undefined
|
number
)
:
Promise
<
number
>
Parameters
p:
PortablePath
flags:
string
Optional
mode:
undefined
|
number
Returns
Promise
<
number
>
open
Sync
open
Sync
(
p
:
PortablePath
, flags
:
string
, mode
?:
undefined
|
number
)
:
number
Parameters
p:
PortablePath
flags:
string
Optional
mode:
undefined
|
number
Returns
number
opendir
Promise
opendir
Promise
(
p
:
PortablePath
, opts
?:
OpendirOptions
)
:
Promise
<
Dir
<
PortablePath
>
>
Parameters
p:
PortablePath
Optional
opts:
OpendirOptions
Returns
Promise
<
Dir
<
PortablePath
>
>
opendir
Sync
opendir
Sync
(
p
:
PortablePath
, opts
?:
OpendirOptions
)
:
Dir
<
PortablePath
>
Parameters
p:
PortablePath
Optional
opts:
OpendirOptions
Returns
Dir
<
PortablePath
>
Private
persist
Path
persist
Path
(
dir
:
PortablePath
)
:
void
Parameters
dir:
PortablePath
Returns
void
Private
persist
Virtual
Parent
Folder
persist
Virtual
Parent
Folder
(
p
:
FSPath
<
PortablePath
>
)
:
void
Parameters
p:
FSPath
<
PortablePath
>
Returns
void
preserve
Time
Promise
preserve
Time
Promise
(
p
:
PortablePath
, cb
:
function
)
:
Promise
<
void
>
Parameters
p:
PortablePath
cb:
function
(
)
:
Promise
<
PortablePath
|
void
>
Returns
Promise
<
PortablePath
|
void
>
Returns
Promise
<
void
>
preserve
Time
Sync
preserve
Time
Sync
(
p
:
PortablePath
, cb
:
function
)
:
Promise
<
void
>
Parameters
p:
PortablePath
cb:
function
(
)
:
PortablePath
|
void
Returns
PortablePath
|
void
Returns
Promise
<
void
>
read
File
Promise
read
File
Promise
(
p
:
FSPath
<
PortablePath
>
, encoding
?:
undefined
|
null
)
:
Promise
<
Buffer
>
read
File
Promise
(
p
:
FSPath
<
PortablePath
>
, encoding
:
BufferEncoding
)
:
Promise
<
string
>
read
File
Promise
(
p
:
FSPath
<
PortablePath
>
, encoding
?:
BufferEncoding
|
null
)
:
Promise
<
Buffer
|
string
>
Parameters
p:
FSPath
<
PortablePath
>
Optional
encoding:
undefined
|
null
Returns
Promise
<
Buffer
>
Parameters
p:
FSPath
<
PortablePath
>
encoding:
BufferEncoding
Returns
Promise
<
string
>
Parameters
p:
FSPath
<
PortablePath
>
Optional
encoding:
BufferEncoding
|
null
Returns
Promise
<
Buffer
|
string
>
read
File
Sync
read
File
Sync
(
p
:
FSPath
<
PortablePath
>
, encoding
?:
undefined
|
null
)
:
Buffer
read
File
Sync
(
p
:
FSPath
<
PortablePath
>
, encoding
:
BufferEncoding
)
:
string
read
File
Sync
(
p
:
FSPath
<
PortablePath
>
, encoding
?:
BufferEncoding
|
null
)
:
Buffer
|
string
Parameters
p:
FSPath
<
PortablePath
>
Optional
encoding:
undefined
|
null
Returns
Buffer
Parameters
p:
FSPath
<
PortablePath
>
encoding:
BufferEncoding
Returns
string
Parameters
p:
FSPath
<
PortablePath
>
Optional
encoding:
BufferEncoding
|
null
Returns
Buffer
|
string
read
Json
Promise
read
Json
Promise
(
p
:
PortablePath
)
:
Promise
<
any
>
Parameters
p:
PortablePath
Returns
Promise
<
any
>
read
Json
Sync
read
Json
Sync
(
p
:
PortablePath
)
:
any
Parameters
p:
PortablePath
Returns
any
read
Promise
read
Promise
(
fd
:
number
, buffer
:
Buffer
, offset
?:
undefined
|
number
, length
?:
undefined
|
number
, 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
>
read
Sync
read
Sync
(
fd
:
number
, buffer
:
Buffer
, offset
?:
undefined
|
number
, length
?:
undefined
|
number
, position
?:
undefined
|
number
)
:
number
Parameters
fd:
number
buffer:
Buffer
Optional
offset:
undefined
|
number
Optional
length:
undefined
|
number
Optional
position:
undefined
|
number
Returns
number
readdir
Promise
readdir
Promise
(
p
:
PortablePath
)
:
Promise
<
Array
<
Filename
>
>
readdir
Promise
(
p
:
PortablePath
, opts
:
object
|
null
)
:
Promise
<
Array
<
Filename
>
>
readdir
Promise
(
p
:
PortablePath
, opts
:
object
)
:
Promise
<
Array
<
Dirent
>
>
readdir
Promise
(
p
:
PortablePath
, opts
:
object
)
:
Promise
<
Array
<
Filename
>
|
Array
<
Dirent
>
>
Parameters
p:
PortablePath
Returns
Promise
<
Array
<
Filename
>
>
Parameters
p:
PortablePath
opts:
object
|
null
Returns
Promise
<
Array
<
Filename
>
>
Parameters
p:
PortablePath
opts:
object
with
File
Types
:
true
Returns
Promise
<
Array
<
Dirent
>
>
Parameters
p:
PortablePath
opts:
object
with
File
Types
:
boolean
Returns
Promise
<
Array
<
Filename
>
|
Array
<
Dirent
>
>
readdir
Sync
readdir
Sync
(
p
:
PortablePath
)
:
Array
<
Filename
>
readdir
Sync
(
p
:
PortablePath
, opts
:
object
|
null
)
:
Array
<
Filename
>
readdir
Sync
(
p
:
PortablePath
, opts
:
object
)
:
Array
<
Dirent
>
readdir
Sync
(
p
:
PortablePath
, opts
:
object
)
:
Array
<
Filename
>
|
Array
<
Dirent
>
Parameters
p:
PortablePath
Returns
Array
<
Filename
>
Parameters
p:
PortablePath
opts:
object
|
null
Returns
Array
<
Filename
>
Parameters
p:
PortablePath
opts:
object
with
File
Types
:
true
Returns
Array
<
Dirent
>
Parameters
p:
PortablePath
opts:
object
with
File
Types
:
boolean
Returns
Array
<
Filename
>
|
Array
<
Dirent
>
readlink
Promise
readlink
Promise
(
p
:
PortablePath
)
:
Promise
<
any
>
Parameters
p:
PortablePath
Returns
Promise
<
any
>
readlink
Sync
readlink
Sync
(
p
:
PortablePath
)
:
any
Parameters
p:
PortablePath
Returns
any
realpath
Promise
realpath
Promise
(
p
:
PortablePath
)
:
Promise
<
string
&
object
>
Parameters
p:
PortablePath
Returns
Promise
<
string
&
object
>
realpath
Sync
realpath
Sync
(
p
:
PortablePath
)
:
string
&
object
Parameters
p:
PortablePath
Returns
string
&
object
remove
Promise
remove
Promise
(
p
:
PortablePath
, __namedParameters
?:
object
)
:
Promise
<
void
>
Parameters
p:
PortablePath
Default value
__namedParameters:
object
= {}
max
Retries
:
number
recursive
:
boolean
Returns
Promise
<
void
>
remove
Sync
remove
Sync
(
p
:
PortablePath
, __namedParameters
?:
object
)
:
void
Parameters
p:
PortablePath
Default value
__namedParameters:
object
= {}
recursive
:
boolean
Returns
void
rename
Promise
rename
Promise
(
oldP
:
PortablePath
, newP
:
PortablePath
)
:
Promise
<
void
>
Parameters
oldP:
PortablePath
newP:
PortablePath
Returns
Promise
<
void
>
rename
Sync
rename
Sync
(
oldP
:
PortablePath
, newP
:
PortablePath
)
:
void
Parameters
oldP:
PortablePath
newP:
PortablePath
Returns
void
resolve
resolve
(
path
:
PortablePath
)
:
string
&
object
Parameters
path:
PortablePath
Returns
string
&
object
Private
resolve
Dir
OrFile
Path
resolve
Dir
OrFile
Path
(
p
:
number
)
:
number
resolve
Dir
OrFile
Path
(
p
:
PortablePath
)
:
PortablePath
resolve
Dir
OrFile
Path
(
p
:
FSPath
<
PortablePath
>
)
:
FSPath
<
PortablePath
>
Parameters
p:
number
Returns
number
Parameters
p:
PortablePath
Returns
PortablePath
Parameters
p:
FSPath
<
PortablePath
>
Returns
FSPath
<
PortablePath
>
Private
resolve
File
Path
resolve
File
Path
(
p
:
PortablePath
)
:
PortablePath
resolve
File
Path
(
p
:
FSPath
<
PortablePath
>
)
:
FSPath
<
PortablePath
>
Parameters
p:
PortablePath
Returns
PortablePath
Parameters
p:
FSPath
<
PortablePath
>
Returns
FSPath
<
PortablePath
>
Private
resolve
Link
resolve
Link
(
opts
:
object
)
:
any
Parameters
opts:
object
on
Real
Path
:
function
(
targetPath
:
PortablePath
)
:
any
Parameters
targetPath:
PortablePath
Returns
any
on
Symlink
:
function
(
stats
:
Stats
|
BigIntStats
, targetPath
:
PortablePath
)
:
any
Parameters
stats:
Stats
|
BigIntStats
targetPath:
PortablePath
Returns
any
op
:
string
p
:
PortablePath
Optional
stat
Options
?:
undefined
|
object
Returns
any
Private
resolve
Path
resolve
Path
(
p
:
PortablePath
)
:
ResolvedPath
&
object
Parameters
p:
PortablePath
Returns
ResolvedPath
&
object
rmdir
Promise
rmdir
Promise
(
p
:
PortablePath
, opts
?:
RmdirOptions
)
:
Promise
<
void
>
Parameters
p:
PortablePath
Optional
opts:
RmdirOptions
Returns
Promise
<
void
>
rmdir
Sync
rmdir
Sync
(
p
:
PortablePath
, opts
?:
RmdirOptions
)
:
void
Parameters
p:
PortablePath
Optional
opts:
RmdirOptions
Returns
void
stat
Promise
stat
Promise
(
p
:
PortablePath
)
:
Promise
<
Stats
>
stat
Promise
(
p
:
PortablePath
, opts
:
object
)
:
Promise
<
BigIntStats
>
stat
Promise
(
p
:
PortablePath
, opts
?:
undefined
|
object
)
:
Promise
<
BigIntStats
|
Stats
>
Parameters
p:
PortablePath
Returns
Promise
<
Stats
>
Parameters
p:
PortablePath
opts:
object
bigint
:
true
Returns
Promise
<
BigIntStats
>
Parameters
p:
PortablePath
Optional
opts:
undefined
|
object
Returns
Promise
<
BigIntStats
|
Stats
>
stat
Sync
stat
Sync
(
p
:
PortablePath
)
:
Stats
stat
Sync
(
p
:
PortablePath
, opts
:
object
)
:
BigIntStats
stat
Sync
(
p
:
PortablePath
, opts
?:
undefined
|
object
)
:
BigIntStats
|
Stats
Parameters
p:
PortablePath
Returns
Stats
Parameters
p:
PortablePath
opts:
object
bigint
:
true
Returns
BigIntStats
Parameters
p:
PortablePath
Optional
opts:
undefined
|
object
Returns
BigIntStats
|
Stats
symlink
Promise
symlink
Promise
(
target
:
PortablePath
, p
:
PortablePath
)
:
Promise
<
void
>
Parameters
target:
PortablePath
p:
PortablePath
Returns
Promise
<
void
>
symlink
Sync
symlink
Sync
(
target
:
PortablePath
, p
:
PortablePath
)
:
void
Parameters
target:
PortablePath
p:
PortablePath
Returns
void
truncate
Promise
truncate
Promise
(
p
:
PortablePath
, len
?:
undefined
|
number
)
:
Promise
<
void
>
Parameters
p:
PortablePath
Optional
len:
undefined
|
number
Returns
Promise
<
void
>
truncate
Sync
truncate
Sync
(
p
:
PortablePath
, len
?:
undefined
|
number
)
:
void
Parameters
p:
PortablePath
Optional
len:
undefined
|
number
Returns
void
unlink
Promise
unlink
Promise
(
p
:
PortablePath
)
:
Promise
<
void
>
Parameters
p:
PortablePath
Returns
Promise
<
void
>
unlink
Sync
unlink
Sync
(
p
:
PortablePath
)
:
void
Parameters
p:
PortablePath
Returns
void
unwatch
File
unwatch
File
(
p
:
PortablePath
, cb
?:
WatchFileCallback
)
:
void
Parameters
p:
PortablePath
Optional
cb:
WatchFileCallback
Returns
void
utimes
Promise
utimes
Promise
(
p
:
PortablePath
, atime
:
Date
|
string
|
number
, mtime
:
Date
|
string
|
number
)
:
Promise
<
void
>
Parameters
p:
PortablePath
atime:
Date
|
string
|
number
mtime:
Date
|
string
|
number
Returns
Promise
<
void
>
utimes
Sync
utimes
Sync
(
p
:
PortablePath
, atime
:
Date
|
string
|
number
, mtime
:
Date
|
string
|
number
)
:
void
Parameters
p:
PortablePath
atime:
Date
|
string
|
number
mtime:
Date
|
string
|
number
Returns
void
watch
watch
(
p
:
PortablePath
, cb
?:
WatchCallback
)
:
Watcher
watch
(
p
:
PortablePath
, opts
:
WatchOptions
, cb
?:
WatchCallback
)
:
Watcher
Parameters
p:
PortablePath
Optional
cb:
WatchCallback
Returns
Watcher
Parameters
p:
PortablePath
opts:
WatchOptions
Optional
cb:
WatchCallback
Returns
Watcher
watch
File
watch
File
(
p
:
PortablePath
, cb
:
WatchFileCallback
)
:
StatWatcher
watch
File
(
p
:
PortablePath
, opts
:
WatchFileOptions
, cb
:
WatchFileCallback
)
:
StatWatcher
Parameters
p:
PortablePath
cb:
WatchFileCallback
Returns
StatWatcher
Parameters
p:
PortablePath
opts:
WatchFileOptions
cb:
WatchFileCallback
Returns
StatWatcher
Private
watch
Pnp
File
watch
Pnp
File
(
pnpRootPath
:
PortablePath
)
:
void
Parameters
pnpRootPath:
PortablePath
Returns
void
write
File
Promise
write
File
Promise
(
p
:
FSPath
<
PortablePath
>
, content
:
string
|
NodeJS.ArrayBufferView
, opts
?:
WriteFileOptions
)
:
Promise
<
void
>
Parameters
p:
FSPath
<
PortablePath
>
content:
string
|
NodeJS.ArrayBufferView
Optional
opts:
WriteFileOptions
Returns
Promise
<
void
>
write
File
Sync
write
File
Sync
(
p
:
FSPath
<
PortablePath
>
, content
:
string
|
NodeJS.ArrayBufferView
, opts
?:
WriteFileOptions
)
:
void
Parameters
p:
FSPath
<
PortablePath
>
content:
string
|
NodeJS.ArrayBufferView
Optional
opts:
WriteFileOptions
Returns
void
write
Json
Promise
write
Json
Promise
(
p
:
PortablePath
, data
:
any
)
:
Promise
<
void
>
Parameters
p:
PortablePath
data:
any
Returns
Promise
<
void
>
write
Json
Sync
write
Json
Sync
(
p
:
PortablePath
, data
:
any
)
:
void
Parameters
p:
PortablePath
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
Static
Private
make
Symlink
Stats
make
Symlink
Stats<T>
(
stats
:
T
)
:
T
Type parameters
T
:
Stats
|
BigIntStats
Parameters
stats:
T
Returns
T
yarnpkg-
pnpify
Link
Type
Node
ModulesFS
Portable
Node
ModulesFS
constructor
base
Fs
node
Modules
Tree
options
path
Utils
pnp
File
Path
watch
Manager
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
Base
Fs
get
Extract
Hint
get
Real
Path
link
Promise
link
Sync
lock
Promise
lstat
Promise
lstat
Sync
lutimes
Promise
lutimes
Sync
mkdir
Promise
mkdir
Sync
mkdirp
Promise
mkdirp
Sync
move
Promise
move
Sync
open
Promise
open
Sync
opendir
Promise
opendir
Sync
persist
Path
persist
Virtual
Parent
Folder
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
resolve
Dir
OrFile
Path
resolve
File
Path
resolve
Link
resolve
Path
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
watch
Pnp
File
write
File
Promise
write
File
Sync
write
Json
Promise
write
Json
Sync
write
Promise
write
Sync
make
Symlink
Stats
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