Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Carmine DiMascio committed Mar 1, 2019
1 parent 21fb025 commit c965ee4
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,25 @@ dotenv["HOME"]
dotenv["MY_ENV_VAR1"] ?: "default value"
```

### Iterate over environment variables

With **Java**

```java
Iterator<Map.Entry<String,String>> iter = dotenv.iterator();
while (iter.hasNext()) {
System.out.println(iter.next())
}
```

or with **Kotlin**

```kotlin
for (e in dotenv) {
print(e)
}
```

## Configuration options

### *optional* `directory`
Expand Down

0 comments on commit c965ee4

Please sign in to comment.