Options
All
  • Public
  • Public/Protected
  • All
Menu

Package yarnpkg-fslib

Type aliases

AliasFSOptions

AliasFSOptions<P>: object

Type parameters

Type declaration

ChangeFileOptions

ChangeFileOptions: Partial<object>

CopyOptions

CopyOptions: object

Type declaration

  • overwrite: boolean

CreateReadStreamOptions

CreateReadStreamOptions: Partial<object>

CreateReadStreamOptions

CreateReadStreamOptions: Partial<object>

CreateWriteStreamOptions

CreateWriteStreamOptions: Partial<object>

CreateWriteStreamOptions

CreateWriteStreamOptions: Partial<object>

CwdFSOptions

CwdFSOptions: object

Type declaration

Dirent

Dirent: Exclude<NodeDirent, "name"> & object

Dirent

Dirent: Exclude<NodeDirent, "name"> & object

ExtractHintOptions

ExtractHintOptions: object

Type declaration

  • relevantExtensions: Set<string>

ExtractHintOptions

ExtractHintOptions: object

Type declaration

  • relevantExtensions: Set<string>

FSPath

FSPath<T>: T | number

Type parameters

FSPath

FSPath<T>: T | number

Type parameters

Filename

Filename: string & object & object & object

Filename

Filename: string & object & object & object

JailFSOptions

JailFSOptions: object

Type declaration

LazyFSFactory

LazyFSFactory<P>: function

Type parameters

Type declaration

MkdirOptions

MkdirOptions: Partial<object>

MkdirOptions

MkdirOptions: Partial<object>

NativePath

NativePath: string & object

NativePath

NativePath: string & object

Operations

Operations: Array<function>

Path

Path

PortablePath

PortablePath: string & object

PortablePath

PortablePath: string & object

SymlinkType

SymlinkType: "file" | "dir" | "junction"

UTimes

UTimes<P>: Array<[P, Date, Date]>

Type parameters

VirtualFSOptions

VirtualFSOptions: object

Type declaration

WatchCallback

WatchCallback: function

Type declaration

    • (eventType: string, filename: string): void
    • Parameters

      • eventType: string
      • filename: string

      Returns void

WatchCallback

WatchCallback: function

Type declaration

    • (eventType: string, filename: string): void
    • Parameters

      • eventType: string
      • filename: string

      Returns void

WatchOptions

WatchOptions: Partial<object> | string

WatchOptions

WatchOptions: Partial<object> | string

Watcher

Watcher: object

Type declaration

  • close: function
      • (): void
      • Returns void

  • on: any

Watcher

Watcher: object

Type declaration

  • close: function
      • (): void
      • Returns void

  • on: any

WriteFileOptions

WriteFileOptions: Partial<object> | string

WriteFileOptions

WriteFileOptions: Partial<object> | string

XFS

XFS: NodeFS & object

ZipBufferOptions

ZipBufferOptions: object

Type declaration

  • libzip: Libzip
  • Optional readOnly?: undefined | false | true
  • Optional stats?: Stats

ZipOpenFSOptions

ZipOpenFSOptions: object

Type declaration

  • Optional baseFs?: FakeFS<PortablePath>
  • Optional filter?: RegExp | null
  • libzip: Libzip
  • Optional maxOpenFiles?: undefined | number
  • Optional readOnlyArchives?: undefined | false | true
  • Optional useCache?: undefined | false | true

ZipPathOptions

ZipPathOptions: ZipBufferOptions & object

Variables

Const npath

npath: PathUtils<NativePath> & ConvertUtils = Object.create(path) as any

Const npath

npath: PathUtils<NativePath> & ConvertUtils = Object.create(path) as any

Const ppath

ppath: PathUtils<PortablePath> = Object.create(path.posix) as any

Const ppath

ppath: PathUtils<PortablePath> = Object.create(path.posix) as any

Const xfs

xfs: XFS = Object.assign(new NodeFS(), {detachTemp(p: PortablePath) {tmpdirs.delete(p);},mktempSync<T>(this: XFS, cb?: (p: PortablePath) => T) {registerCleanExit();while (true) {const p = getTempName(`xfs-`);try {this.mkdirSync(p);} catch (error) {if (error.code === `EEXIST`) {continue;} else {throw error;}}const realP = this.realpathSync(p);tmpdirs.add(realP);if (typeof cb !== `undefined`) {try {return cb(realP);} finally {if (tmpdirs.has(realP)) {tmpdirs.delete(realP);try {this.removeSync(realP);} catch {// Too bad if there's an error}}}} else {return p;}}},async mktempPromise<T>(this: XFS, cb?: (p: PortablePath) => Promise<T>) {registerCleanExit();while (true) {const p = getTempName(`xfs-`);try {await this.mkdirPromise(p);} catch (error) {if (error.code === `EEXIST`) {continue;} else {throw error;}}const realP = await this.realpathPromise(p);tmpdirs.add(realP);if (typeof cb !== `undefined`) {try {return await cb(realP);} finally {if (tmpdirs.has(realP)) {tmpdirs.delete(realP);try {await this.removePromise(realP);} catch {// Too bad if there's an error}}}} else {return realP;}}},})

Functions

EBADF

  • EBADF(reason: string): Error & object

EBUSY

  • EBUSY(message: string): Error & object

EEXIST

  • EEXIST(reason: string): Error & object

EINVAL

  • EINVAL(reason: string): Error & object

EISDIR

  • EISDIR(reason: string): Error & object

ENOENT

  • ENOENT(reason: string): Error & object

ENOSYS

  • ENOSYS(message: string, reason: string): Error & object

ENOTDIR

  • ENOTDIR(reason: string): Error & object

EROFS

  • EROFS(reason: string): Error & object

convertPath

  • convertPath<P>(targetPathUtils: PathUtils<P>, sourcePath: Path): P

copyPromise

  • copyPromise<P1, P2>(destinationFs: FakeFS<P1>, destination: P1, sourceFs: FakeFS<P2>, source: P2, opts: CopyOptions): Promise<void>

extendFs

normalizeLineEndings

  • normalizeLineEndings(originalContent: string, newContent: string): string

normalizeLineEndings

  • normalizeLineEndings(originalContent: string, newContent: string): string

patchFs

toFilename

  • toFilename(filename: string): Filename

toFilename

  • toFilename(filename: string): Filename

Object literals

Const Filename

Filename: object

lockfile

lockfile: string & object & object & object = `yarn.lock` as Filename

manifest

manifest: string & object & object & object = `package.json` as Filename

nodeModules

nodeModules: string & object & object & object = `node_modules` as Filename

Const Filename

Filename: object

lockfile

lockfile: string & object & object & object = `yarn.lock` as Filename

manifest

manifest: string & object & object & object = `package.json` as Filename

nodeModules

nodeModules: string & object & object & object = `node_modules` as Filename

Const PortablePath

PortablePath: object

dot

dot: string & object = `.` as PortablePath

root

root: string & object = `/` as PortablePath

Const PortablePath

PortablePath: object

dot

dot: string & object = `.` as PortablePath

root

root: string & object = `/` as PortablePath

Generated using TypeDoc