Skip to content

LitoMore/twe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Twe

CLI for Twitter

Twe

Features

  • Fetch home-timeline
  • Fetch mentions-timeline
  • Fetch user-timeline
  • Post statuses
  • Customizable color themes
  • Multiple account login (WIP)
  • Post media (WIP)
  • Post photo from clipboard (WIP)

Install

$ npm i -g twe

Config

  1. Register a Twitter Elevated app with your Twitter developer account
  2. Give the app Read and Write permission and access to your account
  3. Run twe setup for setup your keys and tokens

Usage

Usage
  $ twe               Fetch home-timeline
  $ twe h|home        Fetch home-timeline
  $ twe m|mentions    Fetch mentions-timeline
  $ twe setup         Setup tokens
  $ twe colors        Config color themes
  $ twe <status> ...  Post status
  $ twe --count=10    Fetch with parameters

Color scheme

Use twe colors to customize your color scheme.

twe-colors

Customizable GET/POST Request

Use twe get or twe post to create a GET/POST request:

$ twe get statuses/home_timeline --include-rts=false
$ twe post statuses/update --status=hi

You could use --repl option to inspect the result in REPL:

$ twe get users/show --id=litomore --repl

> result.name
#=> 'LitoMore' 

Related

  • twii - API for this module

License

MIT © LitoMore

Sponsor this project

 

Packages

No packages published