dat-ecosystem-archive / dat-node

Node module for creating dat compatible tools on file systems [ DEPRECATED - More info on active projects and modules at https://dat-ecosystem.org/ ]
https://dat.foundation
MIT License
501 stars 63 forks source link

Update readme.md #184

Closed chartgerink closed 6 years ago

chartgerink commented 6 years ago

Suggested a change in docs of using the get() method for calling the stats on a dat object.

I was playing around with this and noticed that dat.trackStats().get() did not work because using dat.trackStats() added an object dat.stats that had the get() method. This was not clear to me from the docs.

Note that dat.trackStats().get().version kept returning 0. It got me confused, which is why I suggested this minor change. I recognize that it might be my own fault so feel free to not merge the PR if you judge differently 🥂