# mctrackerlist

> A Tracking Protection List lib for node and the browser

Latest version **1.0.1** (published 2018-08-10) · ISC license · 0 weekly downloads

## Install

```sh
npm install mctrackerlist
pnpm add mctrackerlist
yarn add mctrackerlist
bun add mctrackerlist
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2018-08-10 |
| First published | 2015-12-30 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 248.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Alan Clarke |
| Maintainers | alz |

## Links

- npm: https://www.npmjs.com/package/mctrackerlist
- Repository: https://github.com/qubitdigital/mctrackerlist
- Homepage: https://github.com/qubitdigital/mctrackerlist#readme
- Issues: https://github.com/qubitdigital/mctrackerlist/issues
- npm.io page: https://npm.io/package/mctrackerlist

## Recent versions

- 1.0.1 (latest) — 2018-08-10
- 1.0.0 — 2015-12-30

## README

# McTrackerList

A Tracking Protection List lib for node and the browser

## usage

```js
  var McTrackerList = require("mctrackerlist")

  mc = new McTrackerList([
    // blacklist domain
    '-d www.google.com',
    // whitelist domain
    '+d www.elephantmouse.com',
    // blacklist substring
    '- chickenwing.cup',
    // whitelist substring
    '+ bee/hut'
  ])

  mc.match('www.google.com') // true
  mc.match('www.google.com/bee/hut') // false
  mc.match('www.sidewalk.com/chickenwing.cup') // true
  mc.match('www.elephantmouse.com/chickenwing.cup') // false

  // update rules
  mc.compile([
    // whitelist domain
    '+d www.google.com',
    // blacklist domain
    '-d www.elephantmouse.com',
    // blacklist substring
    '- chickenwing.cup',
    // whitelist substring
    '+ bee/hut'
  ])
```

## run tests

make test

---
_Source: https://npm.io/package/mctrackerlist · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
