node-whatsapp-parser

2.0.0 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i node-whatsapp-parser

Weekly Downloads

2

Version

2.0.0

License

MIT

Unpacked Size

9.24 kB

Total Files

8

Last publish

Collaborators

  • voles