npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

messer

v0.7.3

Published

Command-line messaging for Facebook Messenger

Downloads

27

Readme

Messer

Command-line Messaging for Facebook Messenger

Downloads Version License

Messer is a rich Facebook Messenger client for your terminal. Send and receive messages, view chat historys and more!

demo

Installation

$ npm install -g messer

Quick Start

node version 12.x required

  1. Install messer

  2. Run messer

    $ messer
  3. Enter your login details (don't worry, we don't store a thing)

FAQ

Do you store any of my data?

We don't store your username, password, or any of your interactions on Messer.

The only thing we store is a temporary login token when you first log in. This let's us authenticate you with Facebook without you having to enter your username and password every time. If you want to get rid of it, simply run messer cleanup, or if you're in a Messer session, run the logout command.

Can I use a deactivated Facebook account?

No, unforunately not. If you use Messer with a deactivated Facebook account, your account will be reactivated.

How do group chats work?

Messages from group chats appear like

(My cool friends) John Smith - hey guys!!$$@@

Send a message to a group by using the message command. The name is the name of the group chat! Reply works as normal

Commands Reference

message

Sends a message to a given user

(message | m) "<user>" <message>

Examples

  • message "Matthew" hello world!
  • m "Matthew" hello world!

When sending a message, Messer picks the closest match to what you type in as user. For this reason, you should probably use last names if you want to avoid accidentally texting someone.

reply

Replys to the last message you recevied i.e. Sends a message to the user of the most recently received message.

(reply | r) <message>

Example

  • r "hey yo this is my reply"

Note: this will only work if you have received at least one message through Messer.

contacts

Lists all of your Facebook friends

contacts

history

Displays the last n messages in the conversation with a given user. The number of messages to retrieve are optional (default is 5).

(history | h) "<user>" [<n>]

Examples

  • history "Matthew" 10
  • h "Matthew"

recent

Displays the n most recent conversations. The number of threads is optional (default is 5). The --history option will display the 5 most recent messages in each thread.

recent [<n>] [--history]

Examples

  • recent
  • recent 10
  • recent --history

clear

Clears the number of unread messages in the window title. Since we cannot listen on focus events, it has to be done manually.

(clear | c)

logout

Logs you out

logout

mute

Mutes a thread. If no seconds are specified, the thread is muted indefinetely.

mute "<thread-name>" [seconds]

unmute

Unmutes a thread

unmute "<thread-name>"

settings

Configure your user settings on Messer

settings (set | get | list) [<key>=<value>]

Examples

  • settings list
  • settings get SHOW_READ
  • settings set SHOW_READ=true

For supported settings, see section below

Supported Settings

  • SHOW_READ
    • Marks conversation as "read" when using clear command

Lock-on Mode

Locking on to a user or group allows you to send messages without having to specify the message command; just type away!

lock "Tom Q"

To unlock, simply run:

--unlock

Secret Mode

When in this mode, any messages sent or recieved in the thread will be deleted for you (note, they won't be deleted for everyone).

lock "Tom Q" --secret

Non-interactive Mode

Messer can be run in non-interactive mode with command line arguments to execute a single command.

messer --command='<command>'

Login will be prompted if this is the first time logging in.

Examples

  • messer --command='m "John Smith" Hey, John'
  • messer --command='r Hey, John'

Cleanup

If ever you want to clean up any old Messer sessions and start from scratch, run:

$ messer cleanup

Contributing

Want to add a new command, fix a bug or improve Messer in another way? Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

License

This project is licensed under the ISC License - see the LICENSE file for details