NoFS
Hierarchy
- FakeFS<PortablePath>
- NoFS
Index
Constructors
Properties
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
- 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
- rmPromise
- rmSync
- rmdirPromise
- rmdirSync
- statPromise
- statSync
- symlinkPromise
- symlinkSync
- truncatePromise
- truncateSync
- unlinkPromise
- unlinkSync
- unwatchFile
- utimesPromise
- utimesSync
- watch
- watchFile
- writeFilePromise
- writeFileSync
- writeJsonPromise
- writeJsonSync
- writePromise
- writeSync
Constructors
constructor
Returns NoFS
Properties
publicreadonlypathUtils
staticreadonlyinstance
Methods
accessPromise
Returns Promise<never>
accessSync
Returns never
appendFilePromise
Returns Promise<never>
appendFileSync
Returns never
changeFilePromise
Parameters
p: PortablePath
content: Buffer
Returns Promise<void>
changeFileSync
Parameters
p: PortablePath
content: Buffer
Returns void
checksumFilePromise
Parameters
path: PortablePath
__namedParameters: { algorithm?: string } = {}
Returns Promise<string>
chmodPromise
Returns Promise<never>
chmodSync
Returns never
chownPromise
Returns Promise<never>
chownSync
Returns never
closePromise
Returns Promise<never>
closeSync
Returns never
copyFilePromise
Returns Promise<never>
copyFileSync
Returns never
copyPromise
Parameters
destination: PortablePath
source: PortablePath
optionaloptions: { baseFs?: undefined; linkStrategy?: null | LinkStrategy<PortablePath>; overwrite?: boolean; stableSort?: boolean; stableTime?: boolean }
Returns Promise<void>
copySync
Parameters
destination: PortablePath
source: PortablePath
optionaloptions: { baseFs?: undefined; overwrite?: boolean }
Returns void
createReadStream
Returns never
createWriteStream
Returns never
existsPromise
Parameters
p: PortablePath
Returns Promise<never>
existsSync
Parameters
p: PortablePath
Returns never
fchmodPromise
Returns Promise<never>
fchmodSync
Returns never
fchownPromise
Returns Promise<never>
fchownSync
Returns never
fstatPromise
Parameters
fd: number
Returns Promise<never>
fstatSync
Parameters
fd: number
Returns never
ftruncatePromise
Parameters
fd: number
optionallen: number
Returns Promise<never>
ftruncateSync
Parameters
fd: number
optionallen: number
Returns never
genTraversePromise
Parameters
init: PortablePath
__namedParameters: { stableSort?: boolean } = {}
Returns AsyncGenerator<PortablePath, void, unknown>
getExtractHint
@deprecated: Moved to jsInstallUtils
Returns never
getRealPath
Returns never
linkPromise
Returns Promise<never>
linkSync
Returns never
lockPromise
Type parameters
- T
Parameters
affectedPath: PortablePath
callback: () => Promise<T>
Returns Promise<T>
lstatPromise
Parameters
p: PortablePath
Returns Promise<never>
lstatSync
Parameters
p: PortablePath
Returns never
lutimesPromise
Returns Promise<never>
lutimesSync
Returns never
mkdirPromise
Returns Promise<never>
mkdirSync
Returns never
mkdirpPromise
Parameters
p: PortablePath
__namedParameters: { chmod?: number; utimes?: [string | number | Date, string | number | Date] } = {}
Returns Promise<undefined | string>
mkdirpSync
Parameters
p: PortablePath
__namedParameters: { chmod?: number; utimes?: [string | number | Date, string | number | Date] } = {}
Returns undefined | string
movePromise
Parameters
fromP: PortablePath
toP: PortablePath
Returns Promise<void>
moveSync
Parameters
fromP: PortablePath
toP: PortablePath
Returns void
openPromise
Returns Promise<never>
openSync
Returns never
opendirPromise
Returns Promise<never>
opendirSync
Returns never
preserveTimePromise
Parameters
p: PortablePath
cb: () => Promise<void | PortablePath>
Returns Promise<void>
preserveTimeSync
Parameters
p: PortablePath
cb: () => void | PortablePath
Returns Promise<void>
readFilePromise
Returns Promise<never>
readFileSync
Returns never
readJsonPromise
Parameters
p: PortablePath
Returns Promise<any>
readJsonSync
Parameters
p: PortablePath
Returns any
readPromise
Returns Promise<never>
readSync
Returns never
readdirPromise
Returns Promise<never>
readdirSync
Returns never
readlinkPromise
Returns Promise<never>
readlinkSync
Returns never
realpathPromise
Returns Promise<never>
realpathSync
Returns never
removePromise
Parameters
p: PortablePath
__namedParameters: { maxRetries?: number; recursive?: boolean } = {}
Returns Promise<void>
removeSync
Parameters
p: PortablePath
__namedParameters: { recursive?: boolean } = {}
Returns void
renamePromise
Returns Promise<never>
renameSync
Returns never
resolve
Returns never
rmPromise
Returns Promise<never>
rmSync
Returns never
rmdirPromise
Returns Promise<never>
rmdirSync
Returns never
statPromise
Returns Promise<never>
statSync
Returns never
symlinkPromise
Returns Promise<never>
symlinkSync
Returns never
truncatePromise
Returns Promise<never>
truncateSync
Returns never
unlinkPromise
Returns Promise<never>
unlinkSync
Returns never
unwatchFile
Returns never
utimesPromise
Returns Promise<never>
utimesSync
Returns never
watch
Returns never
watchFile
Returns never
writeFilePromise
Returns Promise<never>
writeFileSync
Returns never
writeJsonPromise
Parameters
p: PortablePath
data: any
__namedParameters: { compact?: boolean } = {}
Returns Promise<void>
writeJsonSync
Parameters
p: PortablePath
data: any
__namedParameters: { compact?: boolean } = {}
Returns void
writePromise
Returns Promise<never>
writeSync
Returns never
Prefer using
copyPromise
instead