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

keloop-tool

v0.0.1

Published

<!-- * Copyright (c) 2021 成都快一点技术有限公司 All rights reserved * @Author: 许波 * @Date: 2024-02-07 14:40:04 --> # 工具类库

Readme

工具类库

1. 简介

工具类库,包含一些常用的工具类,如日期工具类、字符串工具类等。

2. 使用方法

  1. 在项目中安装工具类库
   npm install keloop-tool --save
  1. 在代码中使用工具类的方法
   import { DateUtils } from 'keloop-tool';
   const date = DateUtils.format(new Date(), 'yyyy-MM-dd');

3. 工具类列表

  • DateUtils:日期工具类,包含各种日期操作方法
  • StringUtils:字符串工具类,包含各种字符串操作方法
  • NumberUtils:数字工具类,包含各种数字操作方法
  • CollectionUtils:集合工具类,包含各种集合操作方法
  • MapUtils:映射工具类,包含各种映射操作方法
  • ArrayUtils:数组工具类,包含各种数组操作方法
  • IOUtils:IO工具类,包含各种IO操作方法

4. 示例代码

5. package.json 说明

  • name:包名
  • version:版本号
  • description:描述
  • main: 入口文件,默认为 index.js,dist/keloop-tool.umd.js,
  • module: 模块入口,dist/keloop-tool.es.js"",
  • scripts:脚本命令
  • authors:作者
  • license:许可证
  • dependencies:依赖包
  • devDependencies:开发依赖包
  • repository:仓库地址
  • bugs:bug反馈地址
  • homepage:项目主页地址

6. 发布到 npm

  1. 登录 npm 账号
  2. 执行 npm publish 命令
  3. 等待审核

7. 更新版本

  1. 修改 package.json 中的 version 版本号
  2. 执行 npm version [newversion] 命令
  3. 执行 npm publish 命令
  4. 等待审核

8. 参考链接