whatsapp-message-filter
v0.0.4
Published
Filter a chat history file from Whatsapp
Downloads
8
Readme
WhatsApp message filter
Filter a chat history file
Usage
- Download a whatsapp file history. Follow this guide: https://faq.whatsapp.com/en/android/23756533/
- 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
// }, ...]