abp-filter-parser-cpp
Native node module, and C++ library for Adblock Plus filter parsing for lists like EasyList.
This is a straight port of the prototype done in JS here: https://github.com/bbondy/abp-filter-parser
It uses a bloom filter and Rabin-Karp algorithm to be super fast.
To include abp-filter-parser-cpp in your project:
npm install --save abp-filter-parser-cpp
JS Sample
var ABPFilterParser = ABPFilterParserLibABPFilterParservar FilterOptions = ABPFilterParserLibFilterOptions var parser = parserparservar b1 = parservar b2 = parserconsoleconsole
C++ Sample
string void int
Developing abp-filter-parser-cpp
-
Clone the git repository from GitHub:
git clone --recursive abp-filter-parser-cpp
-
Open the working directory:
cd abp-filter-parser-cpp
-
Install the Node (v5+) dependencies:
npm install
Make the node module
make
Running sample (which also generates a .dat file for deserializing)
make sample
Running tests
make test
Clearing build files
make clean