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

jtcommand

v1.0.16

Published

在开发/工作中,常常碰到一系列需要自动化的工作,本命令提供了一系列本人常用的命令行工具 ![预览](./docAssets/preview.png) ## 1、安装 ```sh npm i -g jtcommand ``` ## 2、使用 命令行直接输入 `jt` 即可使用 ```sh jt -h ``` 所有命令均支持 `-h` 查看详情 ## 3.命令说明 ### 1、jt create|c 基于已有的模板创建项目(功能类似于 [degit](https://github.com/Rich-Harri

Downloads

53

Readme

jt工具命令

在开发/工作中,常常碰到一系列需要自动化的工作,本命令提供了一系列本人常用的命令行工具 预览

1、安装

npm i -g jtcommand

2、使用

命令行直接输入 jt 即可使用

jt -h

所有命令均支持 -h 查看详情

3.命令说明

1、jt create|c

基于已有的模板创建项目(功能类似于 degit),第一次使用需要先用 jt template -a 新建模板

jt c

create_preview

2、jt change-registry|cr

本命令提供了快速切换源的功能,对于国内的开发者来说,npm官方源的下载速度不太给力,可以切换为其他源,也支持切换回官方源,并支持镜像源测速,目前支持 npmyarnpnpm 包管理器

jt cr

cr_preview

3、jt template|tp

提供模板功能,支持对模板的增删改,主要用于 jt c 创建基于模板的项目。支持本地文件路径、github clone路径。

jt tp -a

tp_preview

其他参数可使用 -h 查看

4、jt deploy|dp

自动部署前端项目的命令,避免每次都需要手动登录服务器的繁琐操作。

首次使用需要先用 jt dp -a 新增一个配置

jt dp -a

deploy_init_preview

注意:目前暂未实现密钥模式;

本地目录名:指build出来的文件夹,一般是 dist;

部署前脚本:在执行自动部署流程之前的操作(jt dp 命令不会自动执行 npm run build);

部署后脚本:在执行自动部署流程之后的操作

初始化配置后即可开始部署

jt dp

deploy_preview

确认需要部署的配置,输入密码后,则开始进行自动部署

问题解答1:本命令不会保存密码在本地文件中,而是由用户手工输入,保证密码的安全性

问题解答2:如果出现部署路径的权限问题,请先保证当前的登录用户拥有服务器部署路径的写入权限

其他参数可使用 -h 查看

5、jt config|cfg

提供配置导入/导出的功能,用于和其他人分享配置

jt cfg -e

cfg_preview

其他参数可使用 -h 查看

6、jt project|pt

当初始化一个项目之后,为了能够遵循统一的代码规范,可能需要配置大量的eslint、prettier以及提交格式校验等,为了避免重复的劳动力,该命令实现了自动增加规范化配置文件,使得新增的项目可以保持相同的代码规范

jt pt

pt_preview 执行完成后,会发现项目中新增了许多配置文件以及 package.json 新增了几个包

其他参数可使用 -h 查看

7、jt version|v

提供更新 package.jsonversion 版本的功能,避免每次更新版本都得手动修改。

jt v

v_preview