This is whatsapp chat parser for exported whatsapp chat log.
npm install whatsapp-chat-parser-js --save
const whatsappParser = require('whatsapp-chat-parser-js')
whatsappParser('sampleChat.txt')
.then(messages => console.log(messages))
.catch(e => console.log(e));
8/8/18, 6:00 PM - The Chechen: What do you propose?
8/8/18, 6:01 PM - The Joker: It's simple. We, uh, kill the Batman.
8/8/18, 6:03 PM - Salvatore Maroni: If it's so simple, why haven't you done it already?
8/8/18, 6:04 PM - The Joker: If you're good at something, never do it for free.
[ { time: '8/8/18, 6:00 PM',
sender: 'The Chechen',
msg: 'What do you propose?' },
{ time: '8/8/18, 6:01 PM',
sender: 'The Joker',
msg: 'It\'s simple. We, uh, kill the Batman.' },
{ time: '8/8/18, 6:03 PM',
sender: 'Salvatore Maroni',
msg: 'If it\'s so simple, why haven\'t you done it already?' },
{ time: '8/8/18, 6:04 PM',
sender: 'The Joker',
msg: 'If you\'re good at something, never do it for free.' } ]
$ git clone https://github.com/s8sachin/whatsapp-chat-parser-js.git
$ npm install
$ npm run example
$ npm install mocha -g
$ git clone https://github.com/s8sachin/whatsapp-chat-parser-js.git
$ npm install
$ npm test