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 🙏

© 2026 – Pkg Stats / Ryan Hefner

ang_util

v1.0.45

Published

地表最强工具合集

Readme

使用说明 在随地使用 import ang_util from 'ang_util';

vue2全局使用 export function createApp() { const app = createSSRApp(App) // app.config.globalProperties.$page = anguel_pagination; app.config.globalProperties.$util = ang_util; return { app, } }

菜单:2022.9.12更新 B64Encode: 'base64 编码', DecodeB64: 'base64 解码',

	toMoney: '转变为金额格式',
	timeOrder: '判断起始年份是否合理',
	findDom: '递归寻找dom',
	readSize: '尺寸转换',

	isHave: 'localStorage是否有这个值',
	getLS: '取出localStorage',
	setLS: '储存localStorage',
	dLS: '单独删除localStorage',
	cLS: '清空所有localStorage',
	setSS: '储存sessionStorage',
	getSS: '取出sessionStorage',

	storage: 'localStorage实例',
	LocalStorage: 'localStorage类',

	addEventListen: '启用监听事件',
	removeEventListen: '清除监听事件',

	pagination: '适配滚动分页数据获取',
	isJsonString: '是否是JSON数据',
	checkPhone: '检查手机号',
	checkIdCard: '身份证检验',
	getType: '获取变量类型',
	isNullOrEmpty: '判空',
	replaceAll: '字符串替换',
	compareVersion: '判断用户基础库版本号,是否可以分享到朋友圈',
	isAuthSet: '判断用户是否已经授权, 如果没有,则引导用户去授权',
	hideIDCardNumber: '隐藏身份证号中间数字',
	hidePhoneNumber: '隐藏手机号中间数字',

	checkImgExists: '判断图片是否能够正常加载',
	removePicExif: '去除掉照片中的Exif信息 用于input上传照片显示旋转',

	getSystemType: '获取手机型号',
	getiOSVersion: '获取手机版本号',
	isAppWebView: '根据浏览器UA判断是否在原生App中的WebView中 app/SmartSafeCommunity',

	bdMap: "百度地图类",

	flyDomIcon: '飞dom',
	flyDom: '自定义飞dom',
	getImgH5: '获取图片的input',
	filesTypes: '文件类型和获取到的类型对应关系',
	getfilesize: '把字节转换成正常文件大小',
	types: '文件类型和获取到的类型对应关系列表',
	sizes: '文件大小',
	backSizeRule: '文件大小转换成标准-50MB',

	mixinsClass: '通过继承该类,拼接多个class类,实例返回以传入的第一个参数类为主',

	image: 'beas64图片'