whatsapp-log-parser
v0.2.0
Published
parse WhatsApp log files
Downloads
16
Readme
whatsapp-log-parser
parse WhatsApp log files
Easily go from WhatsApp .txt
log files to consumable JavaScript objects.
Install
$ npm install --save whatsapp-log-parser
Usage
var whatsappLogParser = require('whatsapp-log-parser');
whatsappLogParser('path/to/log.txt', function(messages){
console.log(messages);
=> [ { date: '2014-02-27T05:16:12+08:00',
message: 'Steve Rogers changed the subject to “The Avengers”',
announcement: true },
{ date: '2014-02-27T05:16:18+08:00',
message: 'Tony Stark was added',
announcement: true },
{ date: '2014-02-27T06:28:37+08:00',
sender: 'Tony Stark',
message: 'What just happened? Please tell me nobody kissed me.' } ]
});
CLI
$ npm install --global whatsapp-log-parser
$ whatsapp-log-parser --help
parse WhatsApp log files
Example
whatsapp-log-parser log.txt
=> Tony Stark was added
Tony Stark: What just happened? Please tell me nobody kissed me.
License
MIT © Matias Singers