npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

v2ex-cli

v0.2.6-beta.1

Published

v2ex-cli

Downloads

5

Readme

V2EX CLI Build Status npm version npm

install

安装

需要 NodeJS 6.0+ 环境 (更低版本未测试) NodeJS 安装

npm i -g v2ex-cli

使用

  • 增加自己的 cookie: v2 install

获取 cookie 请在登录后打开浏览器控制台,在 network 中找地址包含 www.v2ex.com 的链接,拷贝头信息中所有的 cookie 值 需要拷贝所有的 cookie 值,注意是 Request Header 中包含的。 可以参考这个 Issue

  • 列表阅读: v2 show

  • 翻页: v2 go {number} 默认 v2 go 前往下一页 默认 v2 go -p 返回上一页

  • 阅读指定帖子: v2 read {postID} 如果曾阅读过列表,只输入 id 的后几位即可

  • 回复帖子: v2 reply 回复上一次阅读的帖子

  • 节点,获取所有节点: v2 nodes

  • 节点,选取一个节点阅读: v2 nodes {node_name} 如: v2 nodes programmer

  • 节点,翻页:同翻页

  • 查看缓存或清除: v2 cache, v2 cache -d

  • 卸载:v2 implide

  • 帮助: v2, v2 {command} -h

相关

工具暂时没有开放登录,只能通过 v2 install 手动添加 cookie 访问。因为目前 v2ex 添加了验证码, 显示图片不能在所有终端做到非常好的兼容。同时错误的登录会导致 IP 被封锁一天。(v2ex 近期的策略太暴力了)

如果你喜欢,记得点一个 star 支持这个项目...