Pustur / whatsapp-chat-parser

A package to parse WhatsApp chats with Node.js or in the browser 💬

Home Page:https://whatsapp-chat-parser.netlify.app

Repository from Github https://github.comPustur/whatsapp-chat-parserRepository from Github https://github.comPustur/whatsapp-chat-parser

what about new format?

chikiuso opened this issue · comments

hi thanks for your great work,
I just tried and see the WhatsApp export format seem different, may I ask how to deal with it?

 [7/11/2017, 8:20:41 PM] someone: ‎bla bla bla

thanks!

Hey, I don't quite understand your question. I tried your input string and it works fine, what's the problem?

Test script

whatsappChatParser
  .parseString('[7/11/2017, 8:20:41 PM] someone: ‎bla bla bla')
  .then(console.log);

Output:

[
  {
    date: '2017-11-07T20:20:41.000Z', // Date obj
    author: 'someone',
    message: '‎bla bla bla'
  }
]

Closing this for inactivity, feel free to reopen if needed.