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

@gsp-fund/common

v0.0.41

Published

GSCloud资金组测试公共包

Downloads

243

Readme

@gsp-fund/common

GSCloud资金组测试公共包

service 常用公共服务

  • SnippetService 封装平台常用Web构件代码片段
    • http 封装http请求,无需手动获取session,封装部分默认值
    • getCurrentEntity 获取当前实体
    • getFrameContext 获取指定上下文
    • signMessageByCert 证书加签
    • getCert64 获取证书64位编码

util 常用工具

  • Transform 常用转换工具类,方法均为静态
    • amountToUpper 金额小写转中文大写
    • formatNum 格式化数字为x,xxx,xxx.xx
    • formatAccount 格式化账户为xxxx xxxx xxxx xxxx xxx
  • AccurateMath 确保小数精度的运算类
  • ServiceTemplate 服务内常用代码块(由于平台上下文初始化时机位于父类,该类需手工初始化,禁止注入)
    • http 封装平台restService
    • getCurrentEntity 获取当前实体
  • PojoUtil
    • getValueByPath 通过路径返回对象内属性值
    • copy 拷贝
    • addField 添加属性

decorator 常用修饰器

  • Log 方法日志记录

entity 常用实体类

  • EntityFilter 实体过滤类
  • Filter 条件过滤类
  • Filters 条件过滤类集合,封装常用方法

代码仓库

GitLab: farris-fund-common