whatsapp-log-parser

0.2.0 • Public • Published

whatsapp-log-parser Build Status Dependency Status

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.
    

Tony Stark and Steve Rogers

License

MIT © Matias Singers

Readme

Keywords

Package Sidebar

Install

npm i whatsapp-log-parser

Weekly Downloads

1

Version

0.2.0

License

MIT

Last publish

Collaborators

  • matiassingers