Skip to content

Latest commit

 

History

History
29 lines (23 loc) · 1 KB

README.md

File metadata and controls

29 lines (23 loc) · 1 KB

node-whatsapp-parser Build Status

WhatsApp Chat History parser for Node.js

Usage

var parser = require('node-whatsapp-parser');

parser
    .parseFile('whatsapp-chat-archive.txt')
    .then((messages) => {
        // process messages
    });
});

Output

The output is a list of messages containing the date, author and content.

[{
    date: Wed Jan 06 2016 12:30:04 GMT+0100 (CET), // date-object
    author: 'Niels Dequeker',
    content: 'This is a test message'
}, {
    date: Fri Jan 22 2016 20:36:43 GMT+0100 (CET), // date-object
    author: 'Jane Doe',
    content: 'This is a test reply'
}]

Related

This module is used in the node-whatsapp-expenses module to calculate expenses for the authors, grouped by month.