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

wxz-utils

v1.2.1

Published

Basic front-end libraries, commonly used mathematical algorithms, regular checks, array strings, etc...

Downloads

10

Readme

wxz-utils

在个人项目中为了一部分代码避免重复造轮子使用, 于是花点时间打造一款属于个人的前端底层库; 对了底层库使用TS在合适不过了;

当然可以再不同的设备环境中使用,可以在node中使用,也可以在VUE中使用,同时还可以在浏览器中使用

对于具体的使用方法可参考文档: https://utilstools-docs.wangxiaoze.wang/

使用方式

1️⃣:浏览器使用,引入 js-cdn

默认引入: https://cdn.jsdelivr.net/npm/wxz-utils/dist/index.js 支持版本引入:https://cdn.jsdelivr.net/npm/wxz-utils/dist/[email protected]

浏览器<script>中这样使用:

// 打印全局变量,如果有值说明引入成功;
console.log(wxzUtils)
console.log('加', wxzUtils.add(1, 2));
console.log('减', wxzUtils.subtract(1, 2));
console.log('乘', wxzUtils.multi(1, 2));
console.log('除', wxzUtils.division(1, 2));

2️⃣:node 中使用

使用命令: npm i wxz-utils

import { add } from "wxz-utils";
console.log(add(1, 2));

const wxzUtils = require("wxz-utils");
console.log(wxzUtils.add(1, 2));

3️⃣:VUE 中使用

import { add } from "wxz-utils";
console.log(add(1, 2));

工具库的进度

  1. 正则: 已完善常用的几种;
  2. 底层工具库: 基本完善,后续会根据项目情况逐步完善;
  3. 字符串:常用的方法已完善;
  4. 数组:仅仅只有循环
  5. 对象: 还未开始
  6. 方法函数:还未开始;

总体进度以文档(https://utilstools-docs.wangxiaoze.wang/)为准;具体使用可参考文档;