Skip to content

Commit 8aeb127

Browse files
committed
Add an example
1 parent 28e5dbc commit 8aeb127

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

examples/plugin-usage.js

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
const run = require("./src/index");
2+
3+
4+
let input = [1, 2];
5+
6+
let output = input;
7+
8+
const LOOP_COUNT = 20;
9+
10+
11+
async function main () {
12+
for (
13+
let i = 0;
14+
i < LOOP_COUNT;
15+
i++
16+
) {
17+
console.log(output = await run(output));
18+
}
19+
}
20+
21+
22+
main();

0 commit comments

Comments
 (0)