You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(multilevel-config): support multilevel config
Adds support for multilevel objects and arrays to the query string
parsing. For example, the string
`ssl[ca]=ca.pem&ssl[key]=key.pem&ssl[cert]=cert.pem` would parse to:
```
{
ssl: {
ca: 'ca.pem',
key: 'key.pem',
cert: 'cert.pem'
}
}
```
Copy file name to clipboardExpand all lines: README.md
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,3 +32,10 @@ Parses a parameter string of the format key1=value1&key2=value2, optionally conv
32
32
If the value types are to be converted, true and false are converted to booleans irrespective of case. Values are converted to numbers if they match the following regex ```/^[-+]?(\d+\.)?\d+(E[-+]?\d+)?$/i```.
33
33
34
34
If you need finer control of value conversions, leave parseValues at false and handle the conversions in your driver code.
35
+
36
+
If the driver supports multiple levels to the config object (like the MySQL driver), you can modify the `key` as follows:
0 commit comments