Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/voles/node-whatsapp-parser
WhatsApp Chat History parser for Node.js
https://github.com/voles/node-whatsapp-parser
Last synced: 3 months ago
JSON representation
WhatsApp Chat History parser for Node.js
- Host: GitHub
- URL: https://github.com/voles/node-whatsapp-parser
- Owner: Voles
- License: mit
- Created: 2016-02-04T18:55:50.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2018-05-04T19:59:41.000Z (over 6 years ago)
- Last Synced: 2024-10-14T00:03:53.567Z (3 months ago)
- Language: JavaScript
- Size: 17.6 KB
- Stars: 6
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# node-whatsapp-parser [![Build Status](https://travis-ci.com/Voles/node-whatsapp-parser.svg?branch=master)](https://travis-ci.com/Voles/node-whatsapp-parser)
[WhatsApp Chat History](https://www.whatsapp.com/faq/en/s60/21055276) 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](https://github.com/Voles/node-whatsapp-expenses) module to calculate expenses for the authors, grouped by month.