Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • MemFsEditor

Index

Methods

commit

  • commit(callback: Callback): void
  • commit(filters: any[], callback: Callback): void
  • Parameters

    • callback: Callback

    Returns void

  • Parameters

    • filters: any[]
    • callback: Callback

    Returns void

copy

  • copy(from: string, to: string, options?: __type): void
  • Parameters

    • from: string
    • to: string
    • Optional options: __type

    Returns void

copyTpl

  • copyTpl(from: string, to: string, context: __type, templateOptions?: __type, copyOptions?: __type): void
  • Parameters

    • from: string
    • to: string
    • context: __type
    • Optional templateOptions: __type
    • Optional copyOptions: __type

    Returns void

delete

  • delete(filepath: string, options?: __type): void
  • Parameters

    • filepath: string
    • Optional options: __type

    Returns void

exists

  • exists(filepath: string): boolean
  • Parameters

    • filepath: string

    Returns boolean

extendJSON

  • extendJSON(filepath: string, contents: __type, replacer?: function, space?: number): void
  • Parameters

    • filepath: string
    • contents: __type
    • Optional replacer: function
        • (key: string, value: any): any
        • Parameters

          • key: string
          • value: any

          Returns any

    • Optional space: number

    Returns void

move

  • move(from: string, to: string, options?: __type): void
  • Parameters

    • from: string
    • to: string
    • Optional options: __type

    Returns void

read

  • read(filepath: string, options?: __type): string
  • Parameters

    • filepath: string
    • Optional options: __type

    Returns string

readJSON

  • readJSON(filepath: string, defaults?: __type): any
  • Parameters

    • filepath: string
    • Optional defaults: __type

    Returns any

write

  • write(filepath: string, contents: string): void
  • Parameters

    • filepath: string
    • contents: string

    Returns void

writeJSON

  • writeJSON(filepath: string, contents: __type, replacer?: function, space?: number): void
  • Parameters

    • filepath: string
    • contents: __type
    • Optional replacer: function
        • (key: string, value: any): any
        • Parameters

          • key: string
          • value: any

          Returns any

    • Optional space: number

    Returns void

Generated using TypeDoc