steveukx / properties

Properties reader for Node.js
MIT License
77 stars 33 forks source link

Not exactly an issue, but some further explainations maybe ? #33

Closed ghost closed 4 years ago

ghost commented 4 years ago

From the main explanation, it says that properties contents can be displayed either by 'getAllProperties' or by looping through them with the .each((key, value) => {}) iterator. Sorry for my weak 'culture', but it would be nice if you can provide an example in this the case either with the iterator. Thanks in advance, good job!

steveukx commented 4 years ago

Hi, I've added a note to the readme for you... reader.each is a function that you pass a function to which will be called for each item in the properties, used as reader.each((key, value) => { /* use the properties here */ })