0.0.4 • Published 6 years ago

whatsapp-message-filter v0.0.4

Weekly downloads
8
License
MIT
Repository
github
Last release
6 years ago

CircleCI codecov Codacy Badge

WhatsApp message filter

Filter a chat history file

Usage

  1. Download a whatsapp file history. Follow this guide: https://faq.whatsapp.com/en/android/23756533/
  2. Execute the program:

Globally

# npm
npm install -g whatsapp-message-filter
whatsapp-message-filter --input ./file.txt --message "great!"

# npx
npx whatsapp-message-filter --input ./file.txt --message "great!"

# yarn
yarn global add whatsapp-message-filter
npx whatsapp-message-filter --input ./file.txt --message "great!"

Module

# npm
npm install whatsapp-message-filter

# or yarn
yarn add whatsapp-message-filter
const fs = require("fs");
const what = require("whatsapp-message-filter");
const file = fs.readFileSync("./file.txt", "utf-8");
const arr = what(file, "message");

// [{
//   raw: string,
//   date: string,
//   time: string,
//   user: string,
//   message: string
// }, ...]
0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago