• Kipper

    v0.12.1
  • Downloads

  • Docs

  • Playground

  • Changelog

  • Kipper

    v0.12.1
    • Downloads

    • Docs

    • Playground

    • Changelog

      • next /
      • Kipper API /
      • Module /
      • @kipper/config /
      • config
    Kipper Docs
    • next
    • latest
    • 0.11.0
    • 0.10.4
    • 0.9.2
    • Overview

    • Quickstart

    • Goals for Kipper

    • Supported platforms

    • Usage Examples

      • Overview

    • Variables

      • Overview

      • String Type

      • Number Type

      • Boolean Type

      • Void Type

      • Null Type

      • Undefined Type

      • Array Type

      • Overview

      • Tangled Expression

      • Arithmetic Expression

      • Assignment Expression

      • Conditional Expressions

      • Logical Expressions

      • Bitwise Expression

      • Relational Expressions

      • Convert Or Cast Expression

      • F-String Expression

      • Member Access Expression

      • Function Call Expression

      • Lambda Expression

      • Matches Expression

      • Overview

      • Expression Statement

      • If Statement

      • While Loop

      • Do-While Loop

      • For Loop

      • Compound Statement

      • Jump Statement

    • Functions

    • Interfaces

    • Classes

    • Comments

    • Built-in Functions

      • Overview

      • Compiler Setup

        • Overview

          • index

          • compiler

          • errors

          • logger

          • utils

          • config

          • index

          • index

        • Overview

        • new

        • run

        • compile

        • help

        • version

      • next /
      • Kipper API /
      • Module /
      • @kipper/config /
      • config
    • next /
    • Kipper API /
    • Module /
    • @kipper/config /
    • config

    Edit page

    Class: KipperConfigFile

    A class that represents a Kipper config file.

    Since

    0.11.0

    Hierarchy

    • ConfigFile

      ↳ KipperConfigFile

    Table of contents

    Constructors

    • constructor

    Properties

    • content
    • encoding
    • fileName
    • parsedJSON

    Methods

    • fromFile
    • fromString

    Constructors

    constructor

    • Protected new KipperConfigFile(content, fileName?, encoding?, meta?)

    Parameters

    Name Type Default value
    content string undefined
    fileName string "<string>"
    encoding BufferEncoding "utf8"
    meta? ConfigErrorMetaData undefined

    Overrides

    ConfigFile.constructor

    Defined in

    kipper/config/src/kipper-config-file.ts:12

    Properties

    content

    • Readonly content: string

    Inherited from

    ConfigFile.content

    Defined in

    kipper/config/src/abstract/config-file.ts:9


    encoding

    • Readonly encoding: BufferEncoding

    Inherited from

    ConfigFile.encoding

    Defined in

    kipper/config/src/abstract/config-file.ts:12


    fileName

    • Readonly fileName: string

    Inherited from

    ConfigFile.fileName

    Defined in

    kipper/config/src/abstract/config-file.ts:11


    parsedJSON

    • Readonly parsedJSON: Object

    Index signature

    ▪ [key: string]: any

    Inherited from

    ConfigFile.parsedJSON

    Defined in

    kipper/config/src/abstract/config-file.ts:10

    Methods

    fromFile

    ▸ Static fromFile(file, encoding, meta?): Promise<KipperConfigFile>

    Create a new KipperConfigFile from a file.

    Since

    0.11.0

    Parameters

    Name Type Description
    file string The file to read.
    encoding BufferEncoding The encoding of the file.
    meta? ConfigErrorMetaData The metadata for the error. This is primarily only used when resolving extension files, and does not need to be provided when manually creating a KipperConfigFile.

    Returns

    Promise<KipperConfigFile>

    Defined in

    kipper/config/src/kipper-config-file.ts:40


    fromString

    ▸ Static fromString(content, encoding?): KipperConfigFile

    Create a new KipperConfigFile from a string.

    Since

    0.11.0

    Parameters

    Name Type Default value Description
    content string undefined The content of the file.
    encoding BufferEncoding "utf16le" The encoding of the file. As we are running in a JavaScript environment, the default encoding is always assumed to be the internal encoding of the JavaScript environment i.e. UTF-16 (utf16le).

    Returns

    KipperConfigFile

    Defined in

    kipper/config/src/kipper-config-file.ts:28

  • Developed at:

    • Releases
    • GitHub
    • Security
    • Issue Tracker
    • License
  • Copyright © 2021-2026 Luna Klatzer, 2024-2025 Lorenz Holzbauer & Fabian Baitura.
    Kipper is licensed under the GPL-3.0-or-later license.