UNPKG

1.52 kBMarkdownView Raw
1# Installation
2> `npm install --save @types/ini`
3
4# Summary
5This package contains type definitions for ini (https://github.com/isaacs/ini).
6
7# Details
8Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ini.
9## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ini/index.d.ts)
10````ts
11// Type definitions for ini v1.3.3
12// Project: https://github.com/isaacs/ini
13// Definitions by: Marcin Porębski <https://github.com/marcinporebski>
14// Chris Arnesen <https://github.com/carnesen>
15// Adaline Simonian <https://github.com/adalinesimonian>
16// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
17
18interface EncodeOptions {
19 section?: string;
20 whitespace?: boolean;
21}
22
23export function decode(str: string): {
24 [key: string]: any;
25};
26export function parse(str: string): {
27 [key: string]: any;
28};
29export function encode(object: any, options?: EncodeOptions | string): string;
30export function stringify(object: any, options?: EncodeOptions | string): string;
31export function safe(val: string): string;
32export function unsafe(val: string): string;
33
34````
35
36### Additional Details
37 * Last updated: Thu, 07 Oct 2021 21:01:20 GMT
38 * Dependencies: none
39 * Global values: none
40
41# Credits
42These definitions were written by [Marcin Porębski](https://github.com/marcinporebski), [Chris Arnesen](https://github.com/carnesen), and [Adaline Simonian](https://github.com/adalinesimonian).
43
\No newline at end of file