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
Copy file name to clipboardExpand all lines: README.md
+14Lines changed: 14 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -282,6 +282,20 @@ Sets the API address.
282
282
283
283
*`value` should be a [Multiaddr](https://github.com/multiformats/js-multiaddr) or a String representing a valid one.
284
284
285
+
### `repo.stat ([options], callback)`
286
+
287
+
Gets the repo status.
288
+
289
+
`options` is an object which might contain the key `human`, which is a boolean indicating whether or not the `repoSize` should be displayed in MiB or not.
290
+
291
+
`callback` is a function with the signature `function (err, stats)`, where `stats` is an Object with the following keys:
292
+
293
+
-`numObjects`
294
+
-`repoPath`
295
+
-`repoSize`
296
+
-`version`
297
+
-`storageMax`
298
+
285
299
## Notes
286
300
287
301
-[Explanation of how repo is structured](https://github.com/ipfs/js-ipfs-repo/pull/111#issuecomment-279948247)
0 commit comments