MCPcopy
hub / github.com/posthtml/posthtml / plugin

Function plugin

test/api.js:22–32  ·  view source on GitHub ↗
(tree)

Source from the content-addressed store, hash-verified

20 test('<a></a><a></a><a></a>', '<c></c><c></c><c></c>', plugin, {}, done)
21
22 function plugin (tree) {
23 tree
24 .walk(node => node)
25 .walk(node => node)
26 .match({ tag: 'a' }, () => ({
27 tag: 'b'
28 }))
29 .match({ tag: 'b' }, () => ({
30 tag: 'c'
31 }))
32 }
33 })
34
35 it('walk', done => {

Callers 2

processMethod · 0.50
nextMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…