# whatsapp-chat-parser-js

> Whatsapp chat parser javascript

Latest version **1.0.3** (published 2018-08-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install whatsapp-chat-parser-js
pnpm add whatsapp-chat-parser-js
yarn add whatsapp-chat-parser-js
bun add whatsapp-chat-parser-js
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2018-08-23 |
| First published | 2018-08-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | s8sachin |
| Maintainers | s8sachin |
| Keywords | whatsapp, parser, chat, chat parser |

## Links

- npm: https://www.npmjs.com/package/whatsapp-chat-parser-js
- Repository: https://github.com/s8sachin/whatsapp-chat-parser-js
- Homepage: https://github.com/s8sachin/whatsapp-chat-parser-js#readme
- Issues: https://github.com/s8sachin/whatsapp-chat-parser-js/issues
- npm.io page: https://npm.io/package/whatsapp-chat-parser-js

## Dependencies (1)

- [moment](https://npm.io/package/moment.md) ^2.22.2

## Alternatives

- [babylon](https://npm.io/package/babylon.md) — 5.1M weekly downloads
- [csscolorparser](https://npm.io/package/csscolorparser.md) — 3.7M weekly downloads
- [expr-eval-fork](https://npm.io/package/expr-eval-fork.md) — 1.5M weekly downloads
- [@leeoniya/ufuzzy](https://npm.io/package/@leeoniya/ufuzzy.md) — 247.7K weekly downloads
- [xml-parser](https://npm.io/package/xml-parser.md) — 78.4K weekly downloads

## Recent versions

- 1.0.3 (latest) — 2018-08-23
- 1.0.2 — 2018-08-23
- 1.0.1 — 2018-08-23
- 1.0.0 — 2018-08-23

## README

# [Whatsapp Chat Parser Javascript](https://www.npmjs.com/package/whatsapp-chat-parser-js)

This is whatsapp chat parser for exported whatsapp chat log.

## instructions

### 1. install to your project.
```
npm install whatsapp-chat-parser-js --save
```

### 2. import.
```
const whatsappParser = require('whatsapp-chat-parser-js')
```

### 3. usage
```
whatsappParser('sampleChat.txt')
.then(messages => console.log(messages))
.catch(e => console.log(e));
```
### sampleChat.txt
```
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.
```

### Output
```
[ { 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.' } ]
```

### Run Example

```
$ git clone https://github.com/s8sachin/whatsapp-chat-parser-js.git
$ npm install
$ npm run example
```

### Run Tests with mocha

```
$ npm install mocha -g
$ git clone https://github.com/s8sachin/whatsapp-chat-parser-js.git
$ npm install
$ npm test
```

#### published on [npm](https://www.npmjs.com/package/whatsapp-chat-parser-js)
    
## Fork it. and contribute your ideas :)

---
_Source: https://npm.io/package/whatsapp-chat-parser-js · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
