chat-trim
v1.0.0
Published
Remove timestamp and author prefix from WhatsApp/Telegram messages
Maintainers
Readme
chat-trim
Remove timestamp and sender prefix from WhatsApp/Telegram messages
Useful when you copy a message from chat and want just the text content.
Installation
npm i -g chat-trimUsage
chat-trim [options]
Options:
-t, --timestamp Remove timestamp
-s, --sender Remove sender name
-a, --all Remove all (both)
-h, --help Show this help message
Default: Removes both timestamp and senderExample
# Copy a message from chat, then run:
$ chat-trim -t
Reading from clipboard...
== Input ==
[28/7/2026 5:34 pm] Alice: hey
[01:50, 7/31/2026] Bob: check this out:
function greet(name) {
return `Hello, ${name}!`;
}
===========
== Output ==
Alice: hey
Bob: check this out:
function greet(name) {
return `Hello, ${name}!`;
}
============
Saved to clipboard.License
This project is licensed with BSD-2-Clause
This is free, libre, and open-source software. It comes down to four essential freedoms [ref]:
- The freedom to run the program as you wish, for any purpose
- The freedom to study how the program works, and change it so it does your computing as you wish
- The freedom to redistribute copies so you can help others
- The freedom to distribute copies of your modified versions to others
