Skip to content

Calculate shared expenses via the WhatsApp Chat History for Node.js

License

Notifications You must be signed in to change notification settings

Voles/node-whatsapp-expenses

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-whatsapp-expenses

Calculate shared expenses via the WhatsApp Chat History for Node.js.

Usage

var expenseTracker = require('node-whatsapp-expenses');

expenseTracker
    .expenses('whatsapp-chat-archive.txt')
    .then((expenses) => {
        // process expenses
    });
});

Output

The output is a map of authors with their expenses grouped by month.

{
'Niels Dequeker': {
  0: 42, // January
  1: 20, // February
  5: 42 // June
},
'Jane Doe': {
  0: 20 // January
}

About

Calculate shared expenses via the WhatsApp Chat History for Node.js

Resources

License

Stars

Watchers

Forks

Packages

No packages published