Skip to content

Commit 3a1ec67

Browse files
committed
fix: 🐛 corrections in readme\
1 parent 004958a commit 3a1ec67

File tree

1 file changed

+22
-23
lines changed

1 file changed

+22
-23
lines changed

README.md

+22-23
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,31 @@
44

55
This is a tool which helps identifying prototype polluting libraries from [cdnjs.com](https://cdnjs.com/).
66

7-
The idea came to my mind after checking out a tool named [cdnjs-prototype-pollution](https://github.com/aszx87410/cdnjs-prototype-pollution)
8-
written by [@aszx87410](https://github.com/aszx87410) aka Huli.
7+
The idea came to my mind after checking out a tool named [cdnjs-prototype-pollution](https://github.com/aszx87410/cdnjs-prototype-pollution)\ written by [@aszx87410](https://github.com/aszx87410) aka Huli.
98

109
My motivation was to create my own tool with a slightly different approach.
1110

11+
## Install dependencies
12+
13+
```sh
14+
npm install -g ppfang
15+
```
16+
17+
## Run the tool
18+
19+
```sh
20+
$ ppfang check
21+
22+
[1/4281 | 0.02%] Processed https://cdnjs.cloudflare.com/ajax/libs/vue/3.2.38/vue.cjs.js ...
23+
[2/4281 | 0.05%] Processed https://cdnjs.cloudflare.com/ajax/libs/react-is/18.2.0/umd/react-is.production.min.js ...
24+
[3/4281 | 0.07%] Processed https://cdnjs.cloudflare.com/ajax/libs/react/18.2.0/umd/react.production.min.js ...
25+
[4/4281 | 0.09%] Processed https://cdnjs.cloudflare.com/ajax/libs/react-dom/18.2.0/umd/react-dom.production.min.js ...
26+
[5/4281 | 0.12%] Processed https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.2.0/js/bootstrap.min.js ...
27+
[6/4281 | 0.14%] Processed https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/5.2.0/js/bootstrap.min.js ...
28+
[...]
29+
Saved findings to: [PATH]\cdnjs.findings.json
30+
```
31+
1232
## Usage
1333

1434
```text
@@ -35,27 +55,6 @@ Examples:
3555
3656
```
3757

38-
## Install dependencies
39-
40-
```sh
41-
npm install -g ppfang
42-
```
43-
44-
## Run the tool
45-
46-
```sh
47-
$ ppfang --cdnjs
48-
49-
[1/4281 | 0.02%] Processed https://cdnjs.cloudflare.com/ajax/libs/vue/3.2.38/vue.cjs.js ...
50-
[2/4281 | 0.05%] Processed https://cdnjs.cloudflare.com/ajax/libs/react-is/18.2.0/umd/react-is.production.min.js ...
51-
[3/4281 | 0.07%] Processed https://cdnjs.cloudflare.com/ajax/libs/react/18.2.0/umd/react.production.min.js ...
52-
[4/4281 | 0.09%] Processed https://cdnjs.cloudflare.com/ajax/libs/react-dom/18.2.0/umd/react-dom.production.min.js ...
53-
[5/4281 | 0.12%] Processed https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.2.0/js/bootstrap.min.js ...
54-
[6/4281 | 0.14%] Processed https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/5.2.0/js/bootstrap.min.js ...
55-
[...]
56-
Saved findings to: [PATH]\cdnjs.findings.json
57-
```
58-
5958
## Make use of the findings
6059

6160
```text

0 commit comments

Comments
 (0)