Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions

Const appendFileProtocol

  • appendFileProtocol(pathname: string): string

Const checkFileExist

  • checkFileExist(path: string): Promise<boolean>

Const checkFileExists

  • checkFileExists(fileName: string, mode?: number): boolean
  • Parameters

    • fileName: string
    • mode: number = ...

    Returns boolean

Const checkFilesExist

  • checkFilesExist(fileList: string[]): Promise<boolean>
  • Parameters

    • fileList: string[]

    Returns Promise<boolean>

Const convertFileListToArray

  • convertFileListToArray(fileList: FileList): File[]

Const convertItemListToArray

  • convertItemListToArray(itemList: DataTransferItemList): DataTransferItem[]
  • Parameters

    • itemList: DataTransferItemList

    Returns DataTransferItem[]

Const createFilePath

  • createFilePath(locations: { extension: any; name: any; path: any }): string
  • Parameters

    • locations: { extension: any; name: any; path: any }
      • extension: any
      • name: any
      • path: any

    Returns string

Const createRandomDataFile

  • createRandomDataFile(numBytes: number): string

Const downloadReadme

  • downloadReadme(pth: string, o: any): void

Const ensureDirExists

  • ensureDirExists(dir: string, options?: MakeDirectoryOptions): void
  • Parameters

    • dir: string
    • options: MakeDirectoryOptions = ...

    Returns void

Const extractErrorsFromLogs

  • extractErrorsFromLogs(outputPath: string): string[]

Const filterByExtension

  • filterByExtension(fileNames: string[], extension?: string): string[]
  • Parameters

    • fileNames: string[]
    • extension: string = '.json'

    Returns string[]

Const fsReadDir

  • fsReadDir(pth: string): any

Const fsReadFileAsync

  • fsReadFileAsync(pathname: string, encoding: string): Promise<string>
  • Parameters

    • pathname: string
    • encoding: string

    Returns Promise<string>

Const getDirectory

  • getDirectory(filepath: string): Promise<string>
  • Parameters

    • filepath: string

    Returns Promise<string>

Const getDirectorySync

  • getDirectorySync(filepath: string): string

Const getEnvVariables

  • getEnvVariables(): Promise<{}>

Const getFileJson

  • getFileJson(path: string): any

Const getFolderNameFromPathname

  • getFolderNameFromPathname(pathname: string): Optional<string>

Const inspectDataTransfer

  • inspectDataTransfer(dataTransfer: DataTransfer): any

Const isDirectSubPathname

  • isDirectSubPathname(rootPathname: string, targetPathname: string): boolean
  • Parameters

    • rootPathname: string
    • targetPathname: string

    Returns boolean

Const isFolderNameValid

  • isFolderNameValid(name: string): boolean

Const isFolderPathnameValid

  • isFolderPathnameValid(pathname: string): boolean

Const isSubPathname

  • isSubPathname(rootPathname: string, targetPathname: string): boolean
  • Parameters

    • rootPathname: string
    • targetPathname: string

    Returns boolean

Const isValidFile

  • isValidFile(fileName: string, extension?: string): boolean
  • Parameters

    • fileName: string
    • extension: string = '.json'

    Returns boolean

Const packageRequires

  • packageRequires(pth: string, a?: string[]): any
  • Parameters

    • pth: string
    • a: string[] = ...

    Returns any

Const packageRoot

  • packageRoot(pth: string): any

Const pathSplit

  • pathSplit(value: string): string[]

Const readAsText

  • readAsText(file: File): Promise<string>

Const readFileAndSync

  • readFileAndSync(filepath: string, options?: Options): Optional<string>

Const readFileAsyncOrThrow

  • readFileAsyncOrThrow(filepath: string, options?: Options): Promise<Optional<string>>

Const readJsonFile

  • readJsonFile(filePath: string): string

Const rmdirRecursive

  • rmdirRecursive(baseDir: string): void