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

@tnext/cli

v0.1.7

Published

tnext cli

Downloads

11

Readme

@tnext/cli

收集一些常用的指令,提高开发效率。

如何使用

  • 安装
npm i @tnext/cli -g
# or
yarn global add @tnext/cli
  • 使用
tnext -h
  • 环境变量,cli 除了会读取当前的环境变量,还会读取当前用户的 home 目录下的 .tnext.env 文件作为环境变量加载。
# jms 相关的环境变量
JMS_HOST=xxxx
JMS_PORT=xxxx
JMS_KEY_ID=xxxx
JMS_SECRET=xxxx
# end
# HUB 相关的环境变量
HUB_HOST=xxxx
# hub 指令必须设置 cookie,推荐使用 pkg 指令
HUB_COOKIE=xxxx
HUB_DOWNLOAD_SERVICE=xxxx
# end
# PKG 相关的环境变量
PKG_HOST=xxxx
PKG_PORT=xxxx
# end

功能

  • [ ] JMS jump server 相关的快捷命令
    • [x] exec 在指定的服务器上执行命令
    • [ ] upload 上传文件到服务器的指定目录
  • [x] PKG
    • [x] ls 列出指定 namespace 和 repo 下面的镜像
    • [x] download 下载指定 tag(version) 的镜像
  • [x] CSIGHub
    • [x] ls 列出指定 namespace 和 repo 下面的镜像
    • [x] download 下载指定 tag(version) 的镜像
  • [x] config
    • [x] set 设置环境变量
    • [x] get 获取环境变量
    • [x] list 列出所有环境变量
    • [x] ?|h 获取对应环境变量的帮助信息

工作流

  • 下载指定命名空间的仓库的最新版本镜像

    ~~tnext hub download namespace repo latest ~/Downloads~~

    tnext pkg download namespace repo latest ~/Downloads

  • 上传文件到 JMS

    tnext jms upload filename

  • 在 JMS 上执行部署的命令

    tnext jms exec build.sh