0.2.0 • Published 9 years ago

whatsapp-log-parser v0.2.0

Weekly downloads
4
License
MIT
Repository
github
Last release
9 years ago

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

0.2.0

9 years ago

0.1.4

9 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago