UNPKG

properties-file

Version:

.properties file parser, editor, formatter and Webpack loader.

19 lines (17 loc) 558 B
export { Properties } from './properties'; /** * A key-value pair object. */ export type KeyValuePairObject = { [key: string]: string; }; /** * Converts the content of a `.properties` file to a key-value pair object. * * @param content - The content of a `.properties` file. * * @returns A key/value object representing the content of a `.properties` file. */ export declare const getProperties: (content: string | Buffer) => KeyValuePairObject; // Enables type recognition for direct `.properties` file imports. import './properties-file.d.ts'