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


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


Reads and interpolates Java .properties files



function of

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


    class PropertiesFile

    class PropertiesFile {}


      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.


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

                                      You may also use to create a custom badge linking to

                                      • Markdown
                                      • HTML
                                        <a href=""><img src="" alt=""></a>