All Projects → fanfoujs → Nofan

fanfoujs / Nofan

Licence: mit
CLI for Fanfou

Programming Languages

javascript
184084 projects - #8 most used programming language

Labels

Projects that are alternatives of or similar to Nofan

Lyft
Create and manage Lyft rides from the command line
Stars: ✭ 36 (-7.69%)
Mutual labels:  cli
Rocket.chat.apps Cli
The CLI for interacting with Rocket.Chat Apps
Stars: ✭ 37 (-5.13%)
Mutual labels:  cli
Make Me Lol
😄 A command-line tool to make you laugh
Stars: ✭ 38 (-2.56%)
Mutual labels:  cli
Mythra
Music retrieval CLI and API using rust
Stars: ✭ 37 (-5.13%)
Mutual labels:  cli
Sqlite Global Tool
SQLite .NET Core CLI tool that allows the user to manually enter and execute SQL statements with or without showing query result.
Stars: ✭ 37 (-5.13%)
Mutual labels:  cli
Usacloud
usacloud🐰 : CLI client for the Sakura Cloud🌸☁️
Stars: ✭ 37 (-5.13%)
Mutual labels:  cli
Dotnet Delice
📑 A CLI to help you get insight into your projects' licenses
Stars: ✭ 36 (-7.69%)
Mutual labels:  cli
Android File Transfer Linux
Android File Transfer for Linux
Stars: ✭ 994 (+2448.72%)
Mutual labels:  cli
Fuego
fuego is a library for automatically generating command line interfaces (CLIs) from function and struct.
Stars: ✭ 37 (-5.13%)
Mutual labels:  cli
Kotlin Cli
Kotlin-CLI - command line interface options parser for Kotlin
Stars: ✭ 37 (-5.13%)
Mutual labels:  cli
Gomodctl
Search, Check, and Update Go modules.
Stars: ✭ 37 (-5.13%)
Mutual labels:  cli
Cli
GraphQL back-end framework with first-class Typescript support
Stars: ✭ 37 (-5.13%)
Mutual labels:  cli
Kubetop
Kubernetes nodes, pods, services, and deployments in a glance
Stars: ✭ 37 (-5.13%)
Mutual labels:  cli
Football Cli
⚽ Command line interface for Hackers who love football
Stars: ✭ 984 (+2423.08%)
Mutual labels:  cli
Cli Badges
Quirky little node-js library for generating badges for your cli apps.
Stars: ✭ 39 (+0%)
Mutual labels:  cli
Composify
Turn WordPress plugin zip files into git repositories, so that composer version constraints work properly.
Stars: ✭ 36 (-7.69%)
Mutual labels:  cli
Create Wxapp Page
创建微信小程序页面的命令行工具
Stars: ✭ 37 (-5.13%)
Mutual labels:  cli
Iotz
compile things easy 🚀
Stars: ✭ 39 (+0%)
Mutual labels:  cli
Pos
A command-line utility for tagging part of speech for words in text.
Stars: ✭ 39 (+0%)
Mutual labels:  cli
Simplifyify
A simplified Browserify and Watchify CLI
Stars: ✭ 37 (-5.13%)
Mutual labels:  cli

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].