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

cloud-symbol

v2.4.1

Published

123

Downloads

33

Readme

安装

npm i cloud-symbol

文档地址

云符号(浙江)数字科技有限公司

导入

import yfh from "cloud-symbol";

校验表单

// 01 身份证校验
yfh.idCard("身份证");
//校验通过返回TRUE 否则 返回FALSE

//02 校验手机号
yfh.mobile("手机号");
//校验通过返回TRUE 否则 返回FALSE

// 03 提取身份证中的生日
yfh.birthday("身份证");
//返回格式 YYYY-MM-DD  如 1999-05-01

// 04 提取身份证中的年龄
yfh.age("身份证");
//返回 身份证中年龄 如 22

// 05 提取身份证中的性别
yfh.gender("身份证");
//返回 字符串 男  或  女

// 06 校验银行卡是否正确
yfh.bankCard("银行卡");
// 校验通过返回 TRUE  否则返回 FALSE

// 07 校验邮箱是否正确
yfh.email("邮箱");
// 校验通过返回 TRUE  否则返回 FALSE

//2022-03-07 22:43 新增 座机号码校验 护照校验  节流函数  防抖函数

// 08 校验座机号是否正确
yfh.fixedPhone("座机号");
// 校验通过返回 TRUE  否则返回 FALSE

//09 校验护照号码是否正确
yfh.passport("护照号码");
// 校验通过返回 TRUE  否则返回 FALSE
//10 姓名脱敏
yfh.nameHide("姓名");
// 返回脱敏后的姓名 如传入张三 返回 张*  传入 刘德华 返回 刘*华  传入 三上亚悠 返回 三**悠

// 11 手机号脱敏
yfh.mobileHide("手机号");
// 返回脱敏后的手机号 如传入 13388888888 返回 133****8888

//12 身份证脱敏
yfh.idCardHide("身份证号");
// 返回脱敏后的身份证 如传入 370982199201303679  返回 370************679

//13  判断当前设备类型
yfh.getDeviceType();
//返回 当前设备类型  苹果 ios  安卓 android  PC网页 web