hyperdrive-profiler 2.0.0 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/bare-bin.sh +3 -0
- package/bin.js +1 -0
- package/package.json +8 -2
package/README.md
CHANGED
|
@@ -16,6 +16,8 @@ npm i -g hyperdrive-profiler
|
|
|
16
16
|
hyperdrive-profiler <drive key>
|
|
17
17
|
```
|
|
18
18
|
|
|
19
|
+
Note: for running with bare, use `hyperdrive-profiler-bare`,
|
|
20
|
+
|
|
19
21
|
This downloads the Hyperdrive with the given key to a temporary folder, and displays performance and progress metrics.
|
|
20
22
|
|
|
21
23
|
To see all options, run
|
package/bare-bin.sh
ADDED
package/bin.js
CHANGED
package/package.json
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hyperdrive-profiler",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.2",
|
|
4
4
|
"description": "Profile hyperdrive download performance",
|
|
5
5
|
"main": "bin.js",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"test": "standard"
|
|
8
8
|
},
|
|
9
9
|
"bin": {
|
|
10
|
-
"hyperdrive-profiler": "bin.js"
|
|
10
|
+
"hyperdrive-profiler": "bin.js",
|
|
11
|
+
"hyperdrive-profiler-bare": "bare-bin.sh"
|
|
11
12
|
},
|
|
12
13
|
"files": [
|
|
13
14
|
"bin.js"
|
|
@@ -35,6 +36,7 @@
|
|
|
35
36
|
"bare-fs": "^4.0.1",
|
|
36
37
|
"bare-os": "^3.4.0",
|
|
37
38
|
"bare-path": "^3.0.0",
|
|
39
|
+
"bare-performance": "^1.0.1",
|
|
38
40
|
"corestore": "^7.0.0",
|
|
39
41
|
"graceful-goodbye": "^1.3.3",
|
|
40
42
|
"hypercore-id-encoding": "^1.3.0",
|
|
@@ -61,6 +63,10 @@
|
|
|
61
63
|
"path": {
|
|
62
64
|
"bare": "bare-path",
|
|
63
65
|
"default": "path"
|
|
66
|
+
},
|
|
67
|
+
"perf_hooks": {
|
|
68
|
+
"bare": "bare-performance",
|
|
69
|
+
"default": "perf_hooks"
|
|
64
70
|
}
|
|
65
71
|
}
|
|
66
72
|
}
|