yini-parser 1.0.0-alpha.3 → 1.0.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -9
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -59,9 +59,10 @@ import YINI from 'yini-parser';
|
|
|
59
59
|
|
|
60
60
|
// Parse from string.
|
|
61
61
|
const config = YINI.parse(`
|
|
62
|
-
^
|
|
63
|
-
|
|
64
|
-
|
|
62
|
+
^ App
|
|
63
|
+
title = "My App Title"
|
|
64
|
+
items = 25
|
|
65
|
+
isDarkTheme = OFF
|
|
65
66
|
`);
|
|
66
67
|
|
|
67
68
|
// Parse from file.
|
|
@@ -105,10 +106,11 @@ Returns a JavaScript object representing the parsed YINI configuration file.
|
|
|
105
106
|
## Example Output
|
|
106
107
|
```js
|
|
107
108
|
{
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
109
|
+
App:{
|
|
110
|
+
title: "My App Title",
|
|
111
|
+
items: 25,
|
|
112
|
+
isDarkTheme: false
|
|
113
|
+
}
|
|
112
114
|
}
|
|
113
115
|
```
|
|
114
116
|
|
|
@@ -127,5 +129,4 @@ In this project on GitHub, the `libs` directory contains third party software an
|
|
|
127
129
|
|
|
128
130
|
---
|
|
129
131
|
|
|
130
|
-
|
|
131
|
-
> [https://yini-lang.org](https://yini-lang.org)
|
|
132
|
+
~ **YINI ≡** • [https://yini-lang.org](https://yini-lang.org)
|
package/package.json
CHANGED