java-properties

  • Version 1.0.2
  • Published
  • 14.6 kB
  • No dependencies
  • MIT license

Install

npm i java-properties
yarn add java-properties
pnpm add java-properties

Overview

Reads and interpolates Java .properties files

Index

Functions

function of

of: (...args: any[]) => PropertiesFile;

    Classes

    class PropertiesFile

    class PropertiesFile {}

      constructor

      constructor(...args: string[]);

        property objs

        objs: { [key: string]: any };

          method addFile

          addFile: (file: string) => void;

            method get

            get: (key: string, defaultValue?: string) => string | string[] | undefined;

              method getBoolean

              getBoolean: (key: string, defaultBooleanValue?: boolean) => boolean;

                method getFirst

                getFirst: (key: string, defaultValue?: string) => string | undefined;

                  method getFloat

                  getFloat: (key: string, defaultFloatValue?: number) => number | undefined;

                    method getInt

                    getInt: (key: string, defaultIntValue?: number) => number | undefined;

                      method getKeys

                      getKeys: () => string[];

                        method getLast

                        getLast: (key: string, defaultValue?: string) => string | undefined;

                          method getMatchingKeys

                          getMatchingKeys: (matchstr: string) => string[];

                            method interpolate

                            interpolate: (s: string) => string;

                              method makeKeys

                              makeKeys: (line: string) => void;

                                method of

                                of: (...args: string[]) => void;

                                  method reset

                                  reset: () => void;

                                    method set

                                    set: (key: string, value: string) => void;

                                      Package Files (1)

                                      Dependencies (0)

                                      No dependencies.

                                      Dev Dependencies (12)

                                      Peer Dependencies (0)

                                      No peer dependencies.

                                      Badge

                                      To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

                                      You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/java-properties.

                                      • Markdown
                                        [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/java-properties)
                                      • HTML
                                        <a href="https://www.jsdocs.io/package/java-properties"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>