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

@msvx/h5

v1.1.37

Published

v校H5组件库

Downloads

7

Readme

vxcomponents

v 校 H5 组件库

npm install
npm i

本地组件库测试

npm run serve

构件 lib 包

npm run lib

组件库如何使用

// 1、发布版本前,本工程需要先执行 npm run lib
// 2、本工程npm publish

// 3、在相应工程添加依赖
    使用npm
    npm config set registry http://192.168.3.200:8080/nexus/content/repositories/npm-group/
    或使用yarn
    yarn config set registry http://192.168.3.200:8080/nexus/content/repositories/npm-group/
    
    安装
    npm i @component/h5 -S 

    更新
    npm uninstall @component/h5
    npm i @component/h5 -S 
    或使用
    npm update @component/h5

工具类

- check 数据校验
- date 日期处理
- storage 浏览器缓存

// check api
check.isRealArray(_) // 验证是否是有效的数字
check.isString(_) // 验证是否是字符串
check.isNumber(_) // 判断是否是number、Number
check.isPointNumber(_) // 判断是否数字或者带小数点的数字(小数点后2位)
check.isFunction(_) // 判断目标参数是否为function或Function实例
check.isDate(_) // 判断是否为日期对象
check.isArray(_) // 判断是否为数组
check.isElement(_) // 判断是否为Element对象
check.isBool(_) // 判断目标参数是否Boolean对象
check.isObject(_) // 判断目标参数是否为Object对象
check.isNullObject(_) // 验证是否为空对象
check.isNull(_) // 判断是否为空
check.isNullString(_) // 判断是空字符串 null 或者 ''
check.isNullArray(_) // 判断是空数组
check.isMobile(_) // 手机号码验证,验证13系列和150-159(154除外)、180、185、186、187、188、189几种号码,长度11位
check.isEmail(_) // 验证邮箱