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

ccs-utils

v0.2.0

Published

> 全局公共方法

Downloads

5

Readme

ccs-utils

全局公共方法

注意:所有的方法都要通过Ccs**的形式暴露给外部使用

utils 方法类 2021-07-05 邵莉

  • 一、CcsUtils为全局公用方法

    • 1、MenuUtils 动态菜单数据处理

    需要注意: permission中将MenuUtils 的使用改为ccs-utils 并删除项目中 MenuUtils.js文件

    • 2、isJson // 判断是否是JSON字符串 isJson(str)
    • 3、changeFileUpload // 判断上传文件是否包含当前文件类型,'text/html','text/javascript' 该方法需要改造
    • 4、parseTime // 日期格式处理
    • 5、validateObjectCode // 验证对象各个字段 验证对象整体字段 ??? 需要规范
    • 6、objectNote // 获取需要验证字段的备注信息 ??? 需要规范
    • 7、deepClone // 深度克隆
    • 8、throttle // 函数节流
    • 9、debounce // 函数防抖
    • 10、RegDesensitization // 手机/邮箱脱敏设置
  • 二、CcsValidate为全局正则校验类方法

目前为空的 综合各个项目中 的全局方法 归纳整合

  • 三、CcsDownloadExl为全局excel下载方法 等同原来的 downloadExl

    需要注意: 1、该方法已经将xlsx第三方插件内置了,大家在项目中不需再额外下载包, 2、在方法内动态创建了, 大家将index.html中的 删除 import { CcsDownloadExl } from 'ccs-utils'; 全局替换downloadExl为 CcsDownloadExl 即可