Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "file-utils"

Index

Variables

_BOM

_BOM: RegExp = /^\uFEFF/

fs

fs: any = require('fs')

path

path: any = require('path')

Functions

getPath

  • Get the path to the included file by Options

    Parameters

    • path: string

      specified path

    • options: SqrlConfig

      compilation options

    Returns any

getWholeFilePath

  • getWholeFilePath(name: string, parentfile: string, isDirectory?: undefined | false | true): any
  • Get the path to the included file from the parent file path and the specified path.

    Parameters

    • name: string

      specified path

    • parentfile: string

      parent file path

    • Optional isDirectory: undefined | false | true

    Returns any

loadFile

readFile

  • readFile(filePath: string): any

Generated using TypeDoc