# whatsapp-log-parser

> parse WhatsApp log files

Latest version **0.2.0** (published 2015-06-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install whatsapp-log-parser
pnpm add whatsapp-log-parser
yarn add whatsapp-log-parser
bun add whatsapp-log-parser
```

Provides the command `whatsapp-log-parser`.

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.0 |
| Published | 2015-06-02 |
| First published | 2014-10-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 1 |
| Known vulnerabilities | 0 (+3 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 7 |
| Author | Matias Singers |
| Maintainers | matiassingers |
| Keywords | whatsapp, log, parser |

## Links

- npm: https://www.npmjs.com/package/whatsapp-log-parser
- Repository: https://github.com/matiassingers/whatsapp-log-parser
- Issues: https://github.com/matiassingers/whatsapp-log-parser/issues
- npm.io page: https://npm.io/package/whatsapp-log-parser

## Dependencies (1)

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

## Alternatives

- [cli-color](https://npm.io/package/cli-color.md) — 3.4M weekly downloads
- [log](https://npm.io/package/log.md) — 1.3M weekly downloads
- [logstash-client](https://npm.io/package/logstash-client.md) — 4.5K weekly downloads
- [@nocobase/plugin-logger](https://npm.io/package/@nocobase/plugin-logger.md) — 2.0K weekly downloads
- [child-process-debug](https://npm.io/package/child-process-debug.md) — 695 weekly downloads

## Recent versions

- 0.2.0 (latest) — 2015-06-02
- 0.1.4 — 2015-06-02
- 0.1.2 — 2014-10-26
- 0.1.1 — 2014-10-24
- 0.1.0 — 2014-10-24

## README

# whatsapp-log-parser [![Build Status](http://img.shields.io/travis/matiassingers/whatsapp-log-parser.svg?style=flat-square)](https://travis-ci.org/matiassingers/whatsapp-log-parser) [![Dependency Status](http://img.shields.io/gemnasium/matiassingers/whatsapp-log-parser.svg?style=flat-square)](https://gemnasium.com/matiassingers/whatsapp-log-parser)
> parse WhatsApp log files

Easily go from WhatsApp `.txt` log files to consumable JavaScript objects.

## Install

```sh
$ npm install --save whatsapp-log-parser
```


## Usage

```js
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

```sh
$ npm install --global whatsapp-log-parser
```

```sh
$ 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](avengers.gif)


## License

MIT © [Matias Singers](http://mts.io)

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