@adguard/agtree 1.1.7 → 2.0.0-alpha.0

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.
package/README.md CHANGED
@@ -9,36 +9,15 @@
9
9
  <h3 align="center">Universal adblock filter list parser</h3>
10
10
  <p align="center">Supported syntaxes:</p>
11
11
  <p align="center">
12
- <a href="https://adguard.com">
13
- <img src="https://cdn.adguard.com/website/github.com/AGLint/adg_logo.svg" width="14px" />
14
- AdGuard
15
- </a>
16
- |
17
- <a href="https://github.com/gorhill/uBlock">
18
- <img src="https://cdn.adguard.com/website/github.com/AGLint/ubo_logo.svg" width="14px" />
19
- uBlock Origin
20
- </a>
21
- |
22
- <a href="https://getadblock.com">
23
- <img src="https://cdn.adguard.com/website/github.com/AGLint/ab_logo.svg" width="14px" />
24
- AdBlock
25
- </a>
26
- |
27
- <a href="https://adblockplus.org">
28
- <img src="https://cdn.adguard.com/website/github.com/AGLint/abp_logo.svg" width="14px" />
29
- Adblock Plus
30
- </a>
12
+ <img src="https://cdn.adguard.com/website/github.com/AGLint/adg_logo.svg" width="14px" alt="AdGuard logo" /> <a href="https://adguard.com">AdGuard</a>
13
+ | <img src="https://cdn.adguard.com/website/github.com/AGLint/ubo_logo.svg" width="14px" alt="uBlock Origin logo" /> <a href="https://github.com/gorhill/uBlock">uBlock Origin</a>
14
+ | <img src="https://cdn.adguard.com/website/github.com/AGLint/ab_logo.svg" width="14px" alt="AdBlock logo" /><a href="https://getadblock.com">AdBlock</a>
15
+ | <img src="https://cdn.adguard.com/website/github.com/AGLint/abp_logo.svg" width="14px" alt="Adblock Plus logo" /><a href="https://adblockplus.org">Adblock Plus</a>
31
16
  </p>
32
17
  <p align="center">
33
- <a href="https://www.npmjs.com/package/@adguard/agtree">
34
- <img src="https://img.shields.io/npm/v/@adguard/agtree" alt="NPM version" />
35
- </a>
36
- <a href="https://www.npmjs.com/package/@adguard/agtree">
37
- <img src="https://img.shields.io/npm/dm/@adguard/agtree" alt="NPM Downloads" />
38
- </a>
39
- <a href="https://github.com/AdguardTeam/tsurlfilter/blob/master/packages/agtree/LICENSE">
40
- <img src="https://img.shields.io/npm/l/@adguard/agtree" alt="License" />
41
- </a>
18
+ <a href="https://www.npmjs.com/package/@adguard/agtree"><img src="https://img.shields.io/npm/v/@adguard/agtree" alt="NPM version" /></a>
19
+ <a href="https://www.npmjs.com/package/@adguard/agtree"><img src="https://img.shields.io/npm/dm/@adguard/agtree" alt="NPM Downloads" /></a>
20
+ <a href="https://github.com/AdguardTeam/tsurlfilter/blob/master/packages/agtree/LICENSE"><img src="https://img.shields.io/npm/l/@adguard/agtree" alt="License" /></a>
42
21
  </p>
43
22
  <!-- markdownlint-restore -->
44
23
 
@@ -56,14 +35,17 @@ AGTree is a universal tool for working with adblock filter lists. It contains th
56
35
 
57
36
  - [Adblock rule converter][converter-url]
58
37
  - [Adblock rule parser][parser-url]
38
+ - [Adblock rule validator][validator-url]
59
39
  - [Compatibility tables][compatibility-tables-url]
60
40
 
61
41
  AGTree supports all syntaxes currently in use:
62
42
 
63
- - <img src="https://cdn.adguard.com/website/github.com/AGLint/adg_logo.svg" width="14px"> [AdGuard][adg-url]
64
- - <img src="https://cdn.adguard.com/website/github.com/AGLint/ubo_logo.svg" width="14px"> [uBlock Origin][ubo-url]
65
- - <img src="https://cdn.adguard.com/website/github.com/AGLint/abp_logo.svg" width="14px"> [Adblock Plus][abp-url]
66
- - <img src="https://cdn.adguard.com/website/github.com/AGLint/ab_logo.svg" width="14px"> [AdBlock][ab-url]
43
+ <!--markdownlint-disable MD013-->
44
+ - <img src="https://cdn.adguard.com/website/github.com/AGLint/adg_logo.svg" alt="AdGuard logo" width="14px"> [AdGuard][adg-url]
45
+ - <img src="https://cdn.adguard.com/website/github.com/AGLint/ubo_logo.svg" alt="uBlock Origin logo" width="14px"> [uBlock Origin][ubo-url]
46
+ - <img src="https://cdn.adguard.com/website/github.com/AGLint/abp_logo.svg" alt="Adblock Plus logo" width="14px"> [Adblock Plus][abp-url]
47
+ - <img src="https://cdn.adguard.com/website/github.com/AGLint/ab_logo.svg" alt="AdBlock logo" width="14px"> [AdBlock][ab-url]
48
+ <!--markdownlint-enable MD013-->
67
49
 
68
50
  ## Development & Contribution
69
51
 
@@ -85,21 +67,19 @@ resources, please let us know.
85
67
 
86
68
  <!--markdownlint-disable MD013-->
87
69
  - Syntax documentation:
88
- - <img src="https://cdn.adguard.com/website/github.com/AGLint/adg_logo.svg" width="14px"> [AdGuard: *How to create your own ad filters*][adg-filters]
89
- - <img src="https://cdn.adguard.com/website/github.com/AGLint/ubo_logo.svg" width="14px"> [uBlock Origin: *Static filter syntax*][ubo-filters]
90
- - <img src="https://cdn.adguard.com/website/github.com/AGLint/abp_logo.svg" width="14px"> [Adblock Plus: *How to write filters*][abp-filters]
70
+ - <img src="https://cdn.adguard.com/website/github.com/AGLint/adg_logo.svg" width="14px" alt="AdGuard logo"> [AdGuard: *How to create your own ad filters*][adg-filters]
71
+ - <img src="https://cdn.adguard.com/website/github.com/AGLint/ubo_logo.svg" width="14px" alt="uBlock Origin logo"> [uBlock Origin: *Static filter syntax*][ubo-filters]
72
+ - <img src="https://cdn.adguard.com/website/github.com/AGLint/abp_logo.svg" width="14px" alt="Adblock Plus logo"> [Adblock Plus: *How to write filters*][abp-filters]
91
73
  - Extended CSS documentation:
92
74
  - [MDN: *CSS selectors*][mdn-css-selectors]
93
- - <img src="https://cdn.adguard.com/website/github.com/AGLint/adg_logo.svg" width="14px"> [AdGuard: *Extended CSS capabilities*][adg-ext-css]
94
- - <img src="https://cdn.adguard.com/website/github.com/AGLint/ubo_logo.svg" width="14px"> [uBlock Origin: *Procedural cosmetic filters*][ubo-procedural]
95
- - <img src="https://cdn.adguard.com/website/github.com/AGLint/abp_logo.svg" width="14px"> [Adblock Plus: *Extended CSS selectors*][abp-ext-css]
75
+ - <img src="https://cdn.adguard.com/website/github.com/AGLint/adg_logo.svg" width="14px" alt="AdGuard logo"> [AdGuard: *Extended CSS capabilities*][adg-ext-css]
76
+ - <img src="https://cdn.adguard.com/website/github.com/AGLint/ubo_logo.svg" width="14px" alt="uBlock Origin logo"> [uBlock Origin: *Procedural cosmetic filters*][ubo-procedural]
77
+ - <img src="https://cdn.adguard.com/website/github.com/AGLint/abp_logo.svg" width="14px" alt="Adblock Plus logo"> [Adblock Plus: *Extended CSS selectors*][abp-ext-css]
96
78
  - Scriptlets:
97
- - <img src="https://cdn.adguard.com/website/github.com/AGLint/adg_logo.svg" width="14px"> [AdGuard scriptlets][adg-scriptlets]
98
- - <img src="https://cdn.adguard.com/website/github.com/AGLint/ubo_logo.svg" width="14px"> [uBlock Origin scriptlets][ubo-scriptlets]
99
- - <img src="https://cdn.adguard.com/website/github.com/AGLint/abp_logo.svg" width="14px"> [Adblock Plus snippets][abp-snippets]
100
- - Third party libraries:
101
- - <img src="https://raw.githubusercontent.com/csstree/csstree/master/assets/csstree-logo-rounded.svg" width="14px"> [CSSTree docs][css-tree-docs]
102
- - <img src="https://cdn.adguard.com/website/github.com/AGLint/adg_logo.svg" width="14px"> [AdGuard's compatibility table][adg-compatibility-table]
79
+ - <img src="https://cdn.adguard.com/website/github.com/AGLint/adg_logo.svg" width="14px" alt="AdGuard logo"> [AdGuard scriptlets][adg-scriptlets]
80
+ - <img src="https://cdn.adguard.com/website/github.com/AGLint/ubo_logo.svg" width="14px" alt="uBlock Origin logo"> [uBlock Origin scriptlets][ubo-scriptlets]
81
+ - <img src="https://cdn.adguard.com/website/github.com/AGLint/abp_logo.svg" width="14px" alt="Adblock Plus logo"> [Adblock Plus snippets][abp-snippets]
82
+ - <img src="https://cdn.adguard.com/website/github.com/AGLint/adg_logo.svg" width="14px" alt="AdGuard logo"> [AdGuard's compatibility table][adg-compatibility-table]
103
83
  <!--markdownlint-enable MD013-->
104
84
 
105
85
  [ab-url]: https://getadblock.com
@@ -115,12 +95,12 @@ resources, please let us know.
115
95
  [compatibility-tables-url]: https://github.com/AdguardTeam/tsurlfilter/tree/master/packages/agtree/src/compatibility-tables
116
96
  [contributing-url]: https://github.com/AdguardTeam/tsurlfilter/tree/master/packages/agtree/CONTRIBUTING.md
117
97
  [converter-url]: https://github.com/AdguardTeam/tsurlfilter/tree/master/packages/agtree/src/converter
118
- [css-tree-docs]: https://github.com/csstree/csstree/tree/master/docs
119
98
  [discussions-url]: https://github.com/AdguardTeam/tsurlfilter/discussions
120
99
  [license-url]: https://github.com/AdguardTeam/tsurlfilter/blob/master/packages/agtree/LICENSE
121
100
  [mdn-css-selectors]: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Selectors
122
101
  [new-issue-url]: https://github.com/AdguardTeam/tsurlfilter/issues/new
123
102
  [parser-url]: https://github.com/AdguardTeam/tsurlfilter/tree/master/packages/agtree/src/parser
103
+ [validator-url]: https://github.com/AdguardTeam/tsurlfilter/tree/master/packages/agtree/src/validator
124
104
  [ubo-filters]: https://github.com/gorhill/uBlock/wiki/Static-filter-syntax
125
105
  [ubo-procedural]: https://github.com/gorhill/uBlock/wiki/Procedural-cosmetic-filters
126
106
  [ubo-scriptlets]: https://github.com/gorhill/uBlock/wiki/Resources-Library#available-general-purpose-scriptlets