1.2.1 • Published 3 years ago

whatsapp-to-json v1.2.1

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

WhatsAppTxt-to-JSON

This simple script takes in the .txt file exported by WhatsApp and outputs a .json file with an array of messages as objects.

The format of the exported output.json file is an array of the interface:

interface messageObj {
	id: number;
	message: {
		date: string;
		time: string;
		sender: string;
		content: string;
	};
}

Using as an npm package

To use this package in a Node.js project, first install it using

npm install whatsapp-to-json

or

yarn add whatsapp-to-json

Then import it using

import { converter } from "whatsapp-to-json";

Then you can use it like

const convertedArray = converter(PATH_TO_FILE);
1.2.1

3 years ago

1.2.0

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago