UNPKG

key-value-file

Version:

A simple key/value file parser/writer

14 lines (13 loc) 466 B
/// <reference types="node" /> /// <reference types="node" /> import { PathLike } from 'fs'; import { KeyValue } from './keyvalue'; import { KeyValueFile } from './keyvaluefile'; /** * Create a {@link KeyValueFile} instance from the file of `path` */ export declare function parseFile(path: PathLike): Promise<KeyValueFile>; /** * Create a {@link KeyValue} instance from the string `data` */ export declare function parseString(data: string | Buffer): KeyValue;