How to use the adblock-rs.uBlockResources function in adblock-rs

To help you get started, we’ve selected a few adblock-rs examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github brave / brave-core-crx-packager / scripts / generateAdBlockRustDataFiles.js View on Github external
return new Promise((resolve, reject) => {
    const jsonData = JSON.stringify(uBlockResources(
      uBlockWebAccessibleResources,
      uBlockRedirectEngine,
      uBlockScriptlets
    ))
    fs.writeFileSync(getOutPath('resources.json', 'default'), jsonData, 'utf8')
  })
}

adblock-rs

Very fast, Rust-based, native implementation of ad-blocker engine for Node

MPL-2.0
Latest version published 18 days ago

Package Health Score

79 / 100
Full package analysis