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

abler-util

v1.0.37

Published

工具类,常规公用函数

Readme

彭彭自用包:abler-util

常规工具集,包括:

  1. pp-promisify

    为Promise增加promisify函数,通过 Promise.promisify(obj[, ...funcNames])将为obj增加promisify函数,并将指定的函数(需要回调的)转化为返回 Promise 的函数,函数名以 asnyc_ 为前缀

  2. ppUtil

    常用基础函数,从hbbase.js、common.js等文件迁移的常用函数集

安装

npm i abler-util@latest -s

引用

const {ppUtil,promisifiedFs} = require("abler-util");
ppUtil.config(conf, err);

更新日志

1.0.23
  • ppCrypto encryptData/decryptData 方法接口参数修改,允许指定算法、密钥、向量等参数
1.0.16
  • 增加简易日志分级工具,劫持console.xxxx()
1.0.12
  • 修复 ppUtil.waitTimes bug,返回实际等待次数
1.0.11
  • ppUtil 增加 phoneWithCC,isHongkongPhone,isMainlandPhone,isSamePhone 等方法
1.0.9
  • 增加 ppUtil.hookJsonParse 函数,如果启用了JSON5,就可以调用: ppUtil.hookJsonParse(JSON5) 实现日期自动转换
1.0.7
  • fs.promises 增加 exists 函数
1.0.5
  • 修复textUtil.findLine的Bug,解决dbUtil.cleanSqlWhere调用 找不到最后一行的问题

......

0.2.4
  • 创建本地外部配置文件时,允许设置新建文件版本
  • 修复 fs.mkdirs fs.async_mkdirs Bug
0.2.0
  • 调用Promse.SetPromisify 时,可以指定若干函数,将自动在对象中增加函数名以 async_为前缀的函数
  • 废弃 promisifiedFs
Promise.setPromisify(fs, "readFile", "writeFile");
...
let fileContent = await fs.async_readFile('path_to_file');
...
0.1.0

......