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

zhixin-cli-tool

v0.0.4

Published

``` npm install -D zhixin-cli-tool

Downloads

4

Readme

智信微应用命令行工具

安装

npm install -D zhixin-cli-tool

or

yarn add -D zhixin-cli-tool

新增配置文件 .zx-env

{
  "url": "http://localhost:8080",
  "server": "http://192.168.5.54/",
  "active": {
    "username": "1112223333",
    "corpId": "6"
  },
  "useToken": false,
  "accounts": [
    {
      "username": "1112223333",
      "password": "pwdpwdpwd"
    }
  ]
}

配置文件字段说明

url

String

开发环境链接

  • 本地开发,如 http://localhost:8080
  • 远程联调,监听 0.0.0.0, 如: http://192.168.12.34

server

String

后端线上地址

useToken

Boolean | { "key": String }

配置后生成的 URL 不再拼接 userCode,拼接 token.生成的链接为:http://host:port?token=xxxxx

  • 不配置确实为 false => ?userCode=xxx&corpId=yyy
  • useToken: true / useToken: { key: 'token' } => ?token=xxx&corpId=yyy
  • useToken: { key: 'someToken' } => ?someToken=xxx&corpId=yyy

accounts

Array<{username: String, password: String}>

多个账号密码

active

undefined | { username: String, corpId: String }

配置当前使用的用户和公司,不配置则使用 accounts[0] 登录后通过 corpInfo 解析其中第一个公司获得 corpId.

package.json 增加 script

scripts: {
    ...
    "start": "zx"
}

todo

  • 显示线上微应用列表
  • 打开线上微应用
  • 多环境/多配置文件
  • watch 模式,修改配置后打开新链接
  • 选人并发送包含链接卡片到线上智信,用于微应用联调涉及 原生 / wnsdk 的功能
  • mrm 提供项目集成
  • vite 模板生成微应用
  • @vue/cli 模板生成微应用