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

node-tweet-cli

v0.1.4

Published

make tweets from your shell

Downloads

56

Readme

node-tweet-cli

build status npm version Download Count

Small node.js cli tool that allows to tweet from bash, zsh, whatever..

http://ascii.io/a/5633

How to use it

Install module globally:

npm install -g node-tweet-cli

You will be able to use tweet command in your shell.

Start with authorizing your twitter account and start tweeting :)

Commands to use

There are description of available commands here:

tweet login

The tweet login command manages authorization flow. It redirects you to http://twitter.com/oauth/authorize?oauth_token=.. where you need to login and get a PIN. Enter PIN in the terminal prompt and "voilà!" - you are able to tweet from your terminal.

tweet login

tweet logout

The tweet logout command unauthorizes your twitter account from node-tweet-cli.

tweet logout

tweet create (or tweet new)

The tweet create command allows you to post tweets into your twitter account. You will be prompted to type a message.

tweet create

or alias:

tweet new

tweet read

The tweet read command posts message to twitter but reads it from stdin, enabling use with scripting.

echo "your tweet message" | tweet read

or

tweet read < yourInputFile

tweet whoami

The tweet whoami command shows current twitter account name.

tweet whoami

tweet stream [options]

Streams tweets to the console, optionally as json.

tweet stream twitter

or

tweet stream twitter --json

Warning The latter option dumps a lot of json in your console. Make sure your console is able to keep up, or (preferably) pipe to another utility. The latter is actually the use case this option is designed for.

tweet timeline [options]

Streams your timeline to the console, optionally as json.

tweet timeline

or

tweet timeline --json

To do

  • tweeting with images

Contribution

If you have suggestions or found a bug please create an issue here. Thanks!


(c) 2013-2015 MIT License