We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6df6bc0 + a1af623 commit 154c170Copy full SHA for 154c170
index.html
@@ -119,6 +119,16 @@ <h2>API</h2>
119
120
<p><code>callback</code> is called with each node as the only argument.</p>
121
122
+ <p>Generate all tokens of a (sub)tree:</p>
123
+
124
+ <pre><code>parsel.flatten(node)</code></pre>
125
126
+ <p>This can be looped through with <code>for ... of</code>. Uses the same order as <code>walk</code></p>
127
128
+ <p>Convert a list of tokens or a (sub)tree to a string:</p>
129
130
+ <pre><code>parsel.stringify(listOrNode)</code></pre>
131
132
<p>Calculate specificity (returns an array of 3 numbers):</p>
133
134
<pre><code>parsel.specificity(selectorOrNode)</code></pre>
0 commit comments