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

pylonn-llh

v0.0.4

Published

[![build](https://img.shields.io/npm/v/pylonn.svg?style=flat-square)](https://www.npmjs.com/package/pylonn) [![build](https://img.shields.io/npm/l/express.svg)](https://www.npmjs.com/package/pylonn) [![download](https://img.shields.io/npm/dm/pylonn.svg?s

Downloads

8

Readme

Pylon

build build download

名称取自星际争霸神族水晶塔,意在为项目提供支持

ts项目分析工具

以树状文件夹形式查看依赖

  1. 依赖查看可视化(支持动态import, require分析)
  2. 循环引用检测
  3. 指定引用标记
  4. 行数标记,大小统计
  5. 项目代码统计等
//todo
  1. 函数复杂度检测
  2. 依赖文件大小告警
  3. UI 交互优化
  4. ......

(动态图片可点击查看)

使用方法:

npm install pylonn
or
yarn add pylonn
then
dependence -p ./src
-p, --path <file>
用于指定要分析的项目路径,如果不传,默认为当前命令行运行路径
-g --gen-stat-file <file>
用于指定是否生成本地分析文件,类似于webpack生成stat.json
-f, --stat-file <file>
用于指定要读取的结果文件,可不传
-r, --rules <rule>
用于指定的规则数组,为一个二维数组,保存需要标红的依赖路径
  example: --rules [[\\'client\\',\\'server\\'],[\\'server\\',\\'client\\']]
  指定client和server不能互引
-c, --circle 指定是否检测循环引用
-l, --line-number-ignore-path <path>
统计文件时要忽略的文件路径
-m, --file-max-line <max>
配置单个文件最大行数标注
-t, --ts-config-path <path>
用于指定tsconfig.json的目录位置 ,可不传 将自动搜索路径最浅的tsconfig.json文件