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

@beisen/chaos-ui

v1.0.11-7

Published

移动端UI库

Downloads

649

Readme

开发规范

版本号规则

  1. 版本号命名样例 `0.0.1-8`
  2. 每次修改bug更新中划线后的的版本号
  3. 版本号一律向前,不要修改之前的版本
  4. 跟随每次迭代的版本号更新第三位
  5. 新增组件更新第二位
  6. 跟随长迭代最后上线版本更新第一位

css 书写

  1. css命名中用中 - 连接,如 .page-content。
  2. css使用sass来编写,每个组件下如果柚子组件一律用父组件包裹。
  3. 样式层级最多不要超过四级。
  4. 样式位置,组件样式应该和组价在同一文件夹下。
  5. 公共样式放在css文件夹下。
  6. 为配合换肤方案,每一种背景色和前景色的配合写到color.scss中。
  7. 样式单位,一律采用rem做基准单位,1rem = 100px, 1px的边框除外
  8. 样式中important尽量少用或者不用。z-index的值也要控制.
  9. 关于动画的类,名称需要写到constants中

js 书写

  1. 样式名称处理一律用 classnames
  2. 书写一律采用 es6 的书写方式
  3. 方法名,类名命名采用驼峰命名法,方法名首字母小写,类名首字母大写, 如componetDidUpdate,BasicList , 如果是全局常量,则全部 大写 以_分割。
  4. 组件内尽量使用props,少用state
  5. 多次常用的方法需要提出到util中。
  6. 函数过长时,需要拆分成多个函数。
  7. 变量名和方法名称命名时,尽量不要使用简写。
  8. 组件继承时,不要使用多层继承。
  9. reqiure 引入scss文件