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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@lensung/cli

v0.0.6

Published

提供通用的前端工程化能力

Downloads

19

Readme

@lensung/cli

提供通用的前端工程化能力

欢迎将你希望的功能通过 Issue 或 PR 的形式提供给本项目

安装

npm install -g @lensung/cli taobaodev

or

yarn global add @lensung/cli taobaodev

使用

执行命令 lensung

功能

dev

实现了 打包环节可控的代码压缩、图片优化、生产环境去 console、less 等前端工程化能力。

结合 taobaodev 实现了完整小程序开发调试打包工具。

使用流程:

  1. [仅首次使用需要] 项目根目录内 选择 [dev] 执行 [login] 登录淘宝账号
  2. [仅首次使用需要] 执行 [init] 初始化
  3. [仅首次使用需要] 执行 [bind] 绑定对应小程序
  4. 选择需要的开发流程 [dev]/[preview]/[debug]/[upload]
  5. 使用小程序开发者工具 打开项目内的 dist 目录进行开发
  • [dev]: 开发使用,运行后将监控项目内文件改动,实时处理并打包至 dist 目录中
  • [preview]: 调试使用,运行后将文件打包至 dist 目录中
  • [debug]: 调试使用,运行后将文件打包至 dist 目录中
  • [upload]: 发版使用,运行后将文件打包至 dist 目录中。唯一的生产环境,将进行代码压缩、去 console 等操作

注意:

  1. 默认加入了 Less 支持,原有 acss 文件更改后缀名为 less 即可使用
  2. 加入了预处理环境变量,process.env.NODE_ENV,可在程序内使用这个变量判断是开发环境 or 生产环境
  3. 项目中可能有 local-webview,这种情况下调试前需要先打包 local-webview。可创建配置文件 lensung.config.js,写入以下配置(npm scripts),这样脚手架会在打包前执行指定的 npm scripts。
module.exports = {
  development: {
    beforeBuild: 'preview',
  },
  production: {
    beforeBuild: 'package',
  },
}

git

快速获取当前目录下当前用户的提交记录

prettier

选择目录与文件类型 进行批量格式化

上下进行选择、空格选中、a 键全选

目前支持的文件类型:

  • js,jsx,sjs
  • ts,tsx
  • css,acss
  • less
  • scss
  • html
  • axml
  • md
  • json
  • vue