nofan

1.11.0 • Public • Published

Nofan

CLI for Fanfou

Nofan

Features

  • Fetch home-timeline
  • Fetch public-timeline
  • Fetch mentions-timeline
  • Fetch context-timeline
  • Fetch self-timeline
  • Fetch user-timeline
  • Fetch trends-timeline
  • Fetch status item
  • Search statuses
  • Post statuses
  • Post photos
  • Reply status
  • Repost status
  • Multiple account login
  • HTTPS secure connection
  • Customizable timeline
  • Customizable color themes
  • Customizable GET/POST request

Install

$ npm i -g nofan

Login

# Login fanfou account 
$ nofan login

Usage

Commands

$ nofan -h                     # Show help 
$ nofan config                 # Config nofan 
$ nofan colors                 # Customize color style 
$ nofan login                  # Login fanfou account 
$ nofan logout                 # Logout current account 
$ nofan switch                 # Switch fanfou account 
$ nofan                        # Fetch home timeline 
$ nofan home|h                 # Fetch home timeline 
$ nofan mentions|m             # Fetch mentions timeline 
$ nofan me                     # Fetch self timeline 
$ nofan public|p               # Fetch public timeline 
$ nofan context|cont           # Fetch context timeline 
$ nofan trends|tr              # Fetch trends timeline 
$ nofan search|se <query>      # Search public timeline 
$ nofan user <id>              # Fetch user timeline 
$ nofan show <id>              # Fetch status item 
$ nofan reply|re <id> [text]   # Reply status 
$ nofan repost|rt <id> [text]  # Repost status 
$ nofan undo                   # Delete last status 
$ nofan <text> [more...]       # Post status 
$ nofan get <uri>              # Create GET request 
$ nofan post <uri>             # Create POST request 

Tips

Color Scheme

Use nofan colors to customize your color scheme.

Format

Use dot . to separeate multiple styles.

Here is valid styles list.

Example

> #ff99cc
> bold.#ff0000
> pink.underline
> cyanBright
> orange.inverse.underline
> bgYellow.black

Photos Posting

Nofan support post a photo from a local path or clipboard:

# Post a photo from local path, use `-p` or `--photo` 
$ nofan unicorn -p ~/Desktop/heart.png
 
# Post a photo from clipboard (only support macOS, Windows and WSL), use `-c` or `--clipboard` 
$ nofan hi my love -c

Verbose Mode

Now we have a verbose mode for the timeline.

image

Reply & Repost

You could do a quick action by use reply and repost command:

# Reply 
$ nofan re _5gqZTpjAlM hi litomore
 
# Repost 
$ nofan rt _5gqZTpjAlM hi litomore

API Parameter Flags

Nofan is very easy to use, but also very powerful. You could pass to API parameters as flags to the CLI.

You could do something like this:

$ nofan --page=2 --count=30
$ nofan se unicron --count=60

Customizable GET/POST Request

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

$ nofan get account/notification
$ nofan get statuses/home_timeline --mode=lite
$ nofan post statuses/update --status=hi

You could specify a console type for output, default is console.log:

$ nofan get account/notification --console-type=table

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

$ nofan get users/show --id=litomore --repl
 
> result.name
#=> 'LitoMore'  

Related

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i nofan

Weekly Downloads

17

Version

1.11.0

License

MIT

Unpacked Size

33.4 kB

Total Files

15

Last publish

Collaborators

  • litomore