ak--47 / mixpanel-import

🚿 stream data to mixpanel, quickly.
30 stars 1 forks source link

black / whitelist by k:v pairs #11

Closed ak--47 closed 4 months ago

ak--47 commented 4 months ago

you can now do blacklisting or while list by passing options comboWhiteList and comboBlackList whose shape are {[key:string]: string[]} .... so { comboWhiteList: { hello: ['earth', 'mars'] } would only allow events where who had a hello property with values earth or mars (the same blacklist would not allow events which matched in the same way.

this makes it easy to do stuff like:

{
  comboBlackList: {  "API Environment": ["dev", "stg", "local", "yocal"]
}

etc...