k6-modern-reporter 1.0.0 → 1.0.1

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.
Files changed (2) hide show
  1. package/README.md +13 -1
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -35,6 +35,17 @@ A modern, beautiful HTML report generator for k6 performance tests with an inter
35
35
 
36
36
  ## Installation
37
37
 
38
+ ### Direct Import Raw
39
+
40
+ Add the following import like this in any ts file:
41
+
42
+ ```typescript
43
+ // @ts-ignore
44
+ import { htmlReport } from 'https://raw.githubusercontent.com/Samin005/k6-modern-reporter/refs/heads/main/k6-modern-reporter.js';
45
+ ```
46
+
47
+ ### Using NPM (Not Working with k6 1.5)
48
+
38
49
  1. Run `npm i k6-modern-reporter` into your k6 project
39
50
  2. Import `htmlReport` in your script:
40
51
 
@@ -51,7 +62,8 @@ Example of a k6 test script:
51
62
  ```typescript
52
63
  import http from 'k6/http';
53
64
  import { check } from 'k6';
54
- import { htmlReport } from 'k6-modern-reporter';
65
+ // @ts-ignore
66
+ import { htmlReport } from 'https://raw.githubusercontent.com/Samin005/k6-modern-reporter/refs/heads/main/k6-modern-reporter.js';
55
67
 
56
68
  export const options = {
57
69
  scenarios: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "k6-modern-reporter",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "A modern reporter for k6",
5
5
  "main": "k6-modern-reporter.js",
6
6
  "scripts": {