New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

butterjs

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

butterjs

A NodeJS library for effective customer churn calculation.

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

butter.js

Build
Status npm version

A NodeJS library for effective customer churn calculation.

Features

  • Churn rate as a probability - how many customers churned, and how many opportunities did they have to churn
  • Monthly and weekly segments

Background

Every day that a customer keeps their subscription is another day when they didn’t churn. If they are your customer for ten days and churned on the tenth day, they had ten opportunities to churn, and exercised that option on one of the ten days. Another way to think about this is that they churned on 1/10 of the days that they could have churned.

You can aggregate that probability across all of your customers and come up with a more accurate churn rate.

Install

npm install butterjs

Usage

Basic example:

var Butter = require('butterjs');

var churn = new Butter(startCount, endCount, totalChurn, activity, days).churn();

startCount = customers at the start of the period

endCount = customers at the end of the period

totalChurn = existing customers who churned + new customers who churned

activity = the percentage of your user activity in the time interval (best calculated by summing user activity over each day in the period)

days = time interval

Authors

Keywords

churn

FAQs

Package last updated on 16 Jan 2015

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