Socket
Book a DemoInstallSign in
Socket

@posthog/filter-out-plugin

Package Overview
Dependencies
Maintainers
8
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@posthog/filter-out-plugin

> Injest only those events satisfying the given filter conditions

latest
npmnpm
Version
0.0.7
Version published
Weekly downloads
0
-100%
Maintainers
8
Weekly downloads
 
Created
Source

🦔 PostHog Filter Out Plugin

Injest only those events satisfying the given filter conditions

Configuration

The plugin configuration requires a JSON file with the following structure:

Example filters:

Only keep events where all the following conditions are met:

  • Email does not contain yourcompany.com
  • Host is not localhost:8000
  • Browser version greater than 100
[
  {
    "key": "email",
    "type": "string",
    "operator": "not_contains",
    "value": "yourcompany.com"
  },
  {
    "key": "host",
    "type": "string",
    "operator": "is_not",
    "value": "localhost:8000"
  },
  {
    "key": "browser_version",
    "type": "number",
    "operator": "gt",
    "value": 100
  }
]

Allowed types and their operators:

TypeOperators
numbergt, gte, lt, lte, eq, neq
stringis, is_not, contains, not_contains, regex, not_regex
booleanis, is_not

License

MIT

FAQs

Package last updated on 28 Oct 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts