v2erminal

0.0.5 • Public • Published

Interactive terminal client for V2EX. Powered by vue-termui and V2ex API.

Preview

Install

npm install -g v2erminal

Recommend node version 16

Usage

  1. Get a Personal V2ex Token

  2. Set token as Environmental Variable

    export V2EX_TOKEN="XXXXXXXXX"
  3. Open the terminal and then typing V2EX

    v2ex

Config

Create a file named v2ex.json in home path.

{
  "token": "xxxxxxxxxx",
  "proxy": "http://127.0.0.1:7890",
  "nodes": [
    {
      "name": "问与答",
      "code": "qna"
    },
    {
      "name": "酷工作",
      "code": "jobs"
    },
    {
      "name": "分享发现",
      "code": "share"
    }
  ]
}

Known Issus

  • http proxy not working on node >= 18.

Dependencies (7)

Dev Dependencies (11)

Package Sidebar

Install

npm i v2erminal

Weekly Downloads

3

Version

0.0.5

License

none

Unpacked Size

10.7 kB

Total Files

4

Last publish

Collaborators

  • yuyinws