1
1
ChromePet
2
2
=========
3
3
4
- Report new extension version published on Chrome Web Store
4
+ A node.js command line app for reporting new extension version published on Chrome Web Store
5
5
6
6
## Quick Start
7
+
8
+ ```
9
+ npm install -g chromepet
10
+
11
+ $ chromepet -u https://chrome.google.com/webstore/detail/zenhub-for-github/ogcgkffhplmphkaahpmffcafajaocjbd -v 1.0.3
12
+ ```
13
+
14
+ #### Result
15
+ ```
16
+ Publishing version: 1.0.3; Published version: 1.0.2; Not published yet
17
+ Publishing version: 1.0.3; Published version: 1.0.2; Not published yet
18
+ Publishing version: 1.0.3; Published version: 1.0.2; Not published yet
19
+ Publishing version: 1.0.3; Published version: 1.0.2; Not published yet
20
+ ...
21
+ Publishing version: 1.0.3; Published version: 1.0.2; Not published yet
22
+ New version 1.0.3 is published! UserDownloads:9,823.
23
+ Total seconds: 1.132
24
+ ```
25
+
26
+ ## Module API
27
+
7
28
```
8
29
npm install chromepet
9
30
```
@@ -14,7 +35,7 @@ This file `example/zenhub.js` is to check if a new version of ZenHub Chrome Exte
14
35
var chromepet = require (' chromepet' );
15
36
16
37
chromepet ({
17
- extensionURL: ' https://chrome.google.com/webstore/detail/zenhub-for-github/ogcgkffhplmphkaahpmffcafajaocjbd/details ' ,
38
+ extensionURL: ' https://chrome.google.com/webstore/detail/zenhub-for-github/ogcgkffhplmphkaahpmffcafajaocjbd' ,
18
39
publishingVersion: ' 1.0.3'
19
40
})
20
41
.watch ()
@@ -26,7 +47,7 @@ chromepet({
26
47
});
27
48
```
28
49
29
- Result:
50
+ #### Result
30
51
```
31
52
$ node example/zenhub.js
32
53
Publishing version: 1.0.3; Published version: 1.0.2; Not published yet
@@ -55,7 +76,7 @@ var manifest = require(manifestPath);
55
76
var publishingVersion = manifest .version ;
56
77
57
78
chromepet ({
58
- extensionURL: ' https://chrome.google.com/webstore/detail/zenhub-for-github/ogcgkffhplmphkaahpmffcafajaocjbd/details ' ,
79
+ extensionURL: ' https://chrome.google.com/webstore/detail/zenhub-for-github/ogcgkffhplmphkaahpmffcafajaocjbd' ,
59
80
publishingVersion: publishingVersion,
60
81
watchIntervalMS: 1000 ,
61
82
})
@@ -79,4 +100,3 @@ chromepet({
79
100
80
101
## Contributors
81
102
* [ Leo Zhang] ( https://github.com/zhangchiqing )
82
-
0 commit comments