Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PortableNodeModulesFS

Hierarchy

Constructors

constructor

Properties

Private baseFs

Private nodeModulesTree

nodeModulesTree: NodeModulesTree

Private options

pathUtils

Private pnpFilePath

pnpFilePath: PortablePath

Private watchManager

watchManager: WatchManager

Methods

accessPromise

  • accessPromise(p: PortablePath, mode?: undefined | number): Promise<void>

accessSync

  • accessSync(p: PortablePath, mode?: undefined | number): void

appendFilePromise

appendFileSync

changeFilePromise

changeFileSync

checksumFilePromise

  • checksumFilePromise(path: PortablePath, __namedParameters?: object): Promise<string>

chmodPromise

  • chmodPromise(p: PortablePath, mask: number): Promise<void>

chmodSync

chownPromise

  • chownPromise(p: PortablePath, uid: number, gid: number): Promise<void>

chownSync

  • chownSync(p: PortablePath, uid: number, gid: number): void

closePromise

  • closePromise(fd: number): Promise<void>

closeSync

  • closeSync(fd: number): void

copyFilePromise

copyFileSync

copyPromise

  • copyPromise(destination: PortablePath, source: PortablePath, options?: undefined | object): Promise<void>
  • copyPromise<P2>(destination: PortablePath, source: P2, options: object): Promise<void>

copySync

createReadStream

createWriteStream

existsPromise

existsSync

fchmodPromise

  • fchmodPromise(fd: number, mask: number): Promise<void>

fchmodSync

  • fchmodSync(fd: number, mask: number): void

fchownPromise

  • fchownPromise(fd: number, uid: number, gid: number): Promise<void>

fchownSync

  • fchownSync(fd: number, uid: number, gid: number): void

fstatPromise

  • fstatPromise(fd: number): Promise<Stats>
  • fstatPromise(fd: number, opts: object): Promise<BigIntStats>
  • fstatPromise(fd: number, opts?: undefined | object): Promise<BigIntStats | Stats>

fstatSync

  • fstatSync(fd: number): Stats
  • fstatSync(fd: number, opts: object): BigIntStats
  • fstatSync(fd: number, opts?: undefined | object): BigIntStats | Stats

ftruncatePromise

  • ftruncatePromise(fd: number, len?: undefined | number): Promise<void>

ftruncateSync

  • ftruncateSync(fd: number, len?: undefined | number): void

genTraversePromise

  • genTraversePromise(init: PortablePath, __namedParameters?: object): AsyncGenerator<P, void, unknown>

getBaseFs

  • getBaseFs(): FakeFS<string & object>

getExtractHint

getRealPath

  • getRealPath(): string & object

linkPromise

linkSync

lockPromise

  • lockPromise<T>(affectedPath: PortablePath, callback: function): Promise<T>

lstatPromise

  • lstatPromise(p: PortablePath): Promise<Stats>
  • lstatPromise(p: PortablePath, opts: object): Promise<BigIntStats>
  • lstatPromise(p: PortablePath, opts?: undefined | object): Promise<BigIntStats | Stats>

lstatSync

lutimesPromise

  • lutimesPromise(p: PortablePath, atime: Date | string | number, mtime: Date | string | number): Promise<void>

lutimesSync

  • lutimesSync(p: PortablePath, atime: Date | string | number, mtime: Date | string | number): void

mkdirPromise

mkdirSync

mkdirpPromise

  • mkdirpPromise(p: PortablePath, __namedParameters?: object): Promise<string | undefined>

mkdirpSync

  • mkdirpSync(p: PortablePath, __namedParameters?: object): string | undefined

movePromise

moveSync

openPromise

  • openPromise(p: PortablePath, flags: string, mode?: undefined | number): Promise<number>

openSync

  • openSync(p: PortablePath, flags: string, mode?: undefined | number): number

opendirPromise

opendirSync

Private persistPath

Private persistVirtualParentFolder

preserveTimePromise

  • preserveTimePromise(p: PortablePath, cb: function): Promise<void>

preserveTimeSync

  • preserveTimeSync(p: PortablePath, cb: function): Promise<void>

readFilePromise

  • readFilePromise(p: FSPath<PortablePath>, encoding?: undefined | null): Promise<Buffer>
  • readFilePromise(p: FSPath<PortablePath>, encoding: BufferEncoding): Promise<string>
  • readFilePromise(p: FSPath<PortablePath>, encoding?: BufferEncoding | null): Promise<Buffer | string>

readFileSync

readJsonPromise

readJsonSync

readPromise

  • readPromise(fd: number, buffer: Buffer, offset?: undefined | number, length?: undefined | number, position?: undefined | number): Promise<number>

readSync

  • readSync(fd: number, buffer: Buffer, offset?: undefined | number, length?: undefined | number, position?: undefined | number): number

readdirPromise

readdirSync

readlinkPromise

readlinkSync

realpathPromise

  • realpathPromise(p: PortablePath): Promise<string & object>

realpathSync

removePromise

  • removePromise(p: PortablePath, __namedParameters?: object): Promise<void>

removeSync

  • removeSync(p: PortablePath, __namedParameters?: object): void

renamePromise

renameSync

resolve

Private resolveDirOrFilePath

Private resolveFilePath

Private resolveLink

  • resolveLink(opts: object): any

Private resolvePath

rmdirPromise

rmdirSync

statPromise

  • statPromise(p: PortablePath): Promise<Stats>
  • statPromise(p: PortablePath, opts: object): Promise<BigIntStats>
  • statPromise(p: PortablePath, opts?: undefined | object): Promise<BigIntStats | Stats>

statSync

symlinkPromise

symlinkSync

truncatePromise

  • truncatePromise(p: PortablePath, len?: undefined | number): Promise<void>

truncateSync

  • truncateSync(p: PortablePath, len?: undefined | number): void

unlinkPromise

unlinkSync

unwatchFile

utimesPromise

  • utimesPromise(p: PortablePath, atime: Date | string | number, mtime: Date | string | number): Promise<void>

utimesSync

  • utimesSync(p: PortablePath, atime: Date | string | number, mtime: Date | string | number): void

watch

watchFile

Private watchPnpFile

writeFilePromise

writeFileSync

writeJsonPromise

  • writeJsonPromise(p: PortablePath, data: any): Promise<void>

writeJsonSync

writePromise

  • writePromise(fd: number, buffer: Buffer, offset?: undefined | number, length?: undefined | number, position?: undefined | number): Promise<number>
  • writePromise(fd: number, buffer: string, position?: undefined | number): Promise<number>

writeSync

  • writeSync(fd: number, buffer: Buffer, offset?: undefined | number, length?: undefined | number, position?: undefined | number): number
  • writeSync(fd: number, buffer: string, position?: undefined | number): number

Static Private makeSymlinkStats

  • makeSymlinkStats<T>(stats: T): T

Generated using TypeDoc