salmon

0.0.1 • Public • Published

salmon

Twitter client like Vim using Node.js

  • Require
    • node.js (v0.9.0+))
    • npm install ntwitter
    • rlwrap (ought to use)

Modes

stream / command / REPL / insert / lineInsert / search

move through modes

  • stream =(Esc)=> REPL

  • stream =(:)=> command

  • stream =(i)=> insert

  • stream =(I)=> lineInsert

  • stream =(/)=> search

  • command => stream

  • REPL =(:s)=> stream

  • insert =(.Enter)=> stream

  • lineInsert =(.Enter)=> stream

stream

show friends' tweet and the other information (such that you faved by others)

REPL

this is just JavaScript REPL. if the line starts with ':', the line is evaluated as command. command is following.

command

  • :q => quit

  • :s => move to stream

  • :f => show your faved (during stream)

  • :r => show replies to you (during stream)

  • :reply => get replies

  • :cd [id] => (eval "current_user = [id]")

  • :ls => show all id of valiable account of yours

  • :x => delete your last tweet (neverless the account)

  • :fav [id] => favorite the last tweet by @[id] using with the current account

  • TODO

    • :upload [image file]

insert

prompt "post>\n". until the line is just '.', tw_buf += line + "\n". then, post tw_buf as current_user

lineInsert until the line is just '.', post the line

search

/word1 word2

this get 15 tweets.

/n word1 word2

n is integer

vars

  • footer (default value = "")

append footer to every post.

Readme

Keywords

none

Package Sidebar

Install

npm i salmon

Weekly Downloads

0

Version

0.0.1

License

MIT

Last publish

Collaborators

  • cympfh