mp-proj-size

1.0.7 • Public • Published

mp-proj-size

estimate the size of a mixpanel project... in human readable terms.

tldr;

define .env variables

echo "API_SECRET=''  #api secret for project
START_DATE='01-01-2022'  #when to start looking for events
END_DATE='08-01-2022'  #when to stop looking for events
ITERATIONS='30'  #60 is the max before you get rate limited" > .env

run

npx mp-proj-size

alternatively, do it all in one command:

API_SECRET='' START_DATE='01-01-2022' END_DATE='08-01-2022' ITERATIONS='30' npx mp-proj-size

see:

result

note:

this script uses JQL so it only works on projects in which /jql is accessible:

function main() {
		return Events({
		  from_date: '${date}',
		  to_date:   '${date}'
		})
		.groupBy(["name"], mixpanel.reducer.any());
	  }

Package Sidebar

Install

npm i mp-proj-size

Weekly Downloads

60

Version

1.0.7

License

ISC

Unpacked Size

19 kB

Total Files

8

Last publish

Collaborators

  • ak--47