File tree 1 file changed +16
-8
lines changed
1 file changed +16
-8
lines changed Original file line number Diff line number Diff line change @@ -4,14 +4,15 @@ Plugins allow you to modify instamancer's functionality and behavior while gathe
4
4
5
5
The following internal plugins are included with instamancer (but not enabled by default):
6
6
7
- | Plugin| Description|
8
- | ------| -----------|
7
+ | Plugin | Description |
8
+ | ---------- | -------------------------------------------------------- -----------|
9
9
| LargeFirst| Increase the ` first ` parameter in API requests to ask for more data|
10
10
11
11
## Using plugins with the CLI
12
12
13
13
Example:
14
- ```
14
+
15
+ ```
15
16
instamancer hashtag puppies -c1000 --plugin LargeFirst --plugin MyPlugin
16
17
```
17
18
@@ -24,25 +25,32 @@ Steps:
24
25
1 . Clone the instamancer repository
25
26
2 . Install instamancer's dependencies
26
27
3 . Install the plugin with npm / yarn
27
- 4 . Add the plugin to ` plugins/plugins/index.ts `
28
+ 4 . Add the plugin to ` plugins/plugins/index.ts `
29
+
28
30
Example:
29
- ``` typescript
31
+
32
+
33
+ ``` typescript
30
34
export { MyPlugin } from " myplugin" ;
31
35
```
36
+
32
37
5 . Install instamancer
33
38
1 . You can skip this step if you want to run the CLI from source
34
39
6 . Run the CLI with the plugin:
40
+
35
41
36
42
Example:
37
- ```
43
+
44
+
45
+ ```
38
46
instamancer hashtag puppies -c100 --plugin MyPlugin
39
47
```
40
48
41
49
## Using plugins with the module
42
50
43
- Add the plugin to the ` options ` :
51
+ Add the plugin to the ` options ` :
44
52
45
- ``` typescript
53
+ ``` typescript
46
54
import * as instamancer from " ." ;
47
55
48
56
const options: instamancer .IOptions = {
You can’t perform that action at this time.
0 commit comments