summaryrefslogtreecommitdiffhomepage
path: root/README.md
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2022-08-29 12:02:43 +0200
committerJo-Philipp Wich <jo@mein.io>2022-08-29 12:02:43 +0200
commit89452b20e5073feb28b294a707342ef144f4b5f0 (patch)
tree13b7a042cd7acb0dd0019b5ebab628bfcf5226d9 /README.md
parentbcdd2cb33797412cce1f1014d265a71461676cff (diff)
lib: improve getenv() and split() implementations
- getenv(): Allow querying the entire environment by omiting variable name - split(): Properly handle null bytes in subject and separator strings Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'README.md')
-rw-r--r--README.md5
1 files changed, 3 insertions, 2 deletions
diff --git a/README.md b/README.md
index bd7d0c4..f09c71d 100644
--- a/README.md
+++ b/README.md
@@ -736,9 +736,10 @@ a = filter(["foo", 1, true, null, 2.2], function(v) {
// a = [1, 2.2]
```
-#### 6.10. `getenv(name)`
+#### 6.10. `getenv([name])`
-Return the value of the given environment variable.
+Return the value of the given environment variable. If the variable name is
+omitted, returns a dictionary containing all environment variables.
#### 6.11. `hex(x)`