Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return async opts=>{
if (!_match(opts)) return
const { content } = opts
let code
const handler = new DomHandler((error, dom:Element[])=>{
if (error) throw error
const dom0 = dom[0]
const { attribs } = dom0
const txt__attribs =
map(
keys(attribs),
key=>`${key}=${JSON.stringify(attribs[key])}`).join(' ')
code = `