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

@mac-xiang/method

v2.1.1

Published

自用的一些常用方法库.如果有任何问题,请用最善良的心以及最恶毒的语言进行批评.

Downloads

56

Readme

常用方法

NPM version build status Test coverage David deps npm download NPM

介绍

自用的一些常用方法库.如果有任何问题,请用最善良的心以及最恶毒的语言进行批评.

更新说明

2.0.14
  1. 修复nextTick错误;
2.0.13
  1. 修复BaseArr.read 方法逻辑错误;
2.0.12
  1. 优化条件查询;
2.0.12
  1. 新增Class Query/Update,便于查询条件生成;
2.0.11
  1. 删除方法:isSetter.改为isNull;
  2. 调整BaseArr参数类型约束;
  3. 添加大量注释
2.0.10
  1. 新增请求参数interface.
  2. 调整BaseArr对应参数为新增的请求参数类型,以增强提示
2.0.9
  1. 调整.BaseArr,使其应用更加简洁,但同时增加了new BaseArr()中参数opt的复杂程度.
2.0.8-1
  1. 修复严重bug: sendSync 自动生成的sid 没有被""包裹;会导致后端解析时出现错误.
2.0.8
  1. 加入三方库md5并导出
  2. 优化mws的sendSync时 sid为md5数据摘要,而非完整的数据;
  3. 修复bug:objCompare、arrFind2,对比数据时可能出现的不准确现象.

软件架构

编译: npm run build 测试: npm run dev

安装教程

  1. npm i

使用说明

  1. import xxx from "tmk-method"
  2. 编译: npm run build
  3. test npm run test

参与贡献

  1. Fork 本仓库
  2. 新建 Feat_xxx 分支
  3. 提交代码
  4. 新建 Pull Request

特技

啥都没有.就自己用.自己能看懂就行.就几个方法,自己去index.js中看吧.或者src index.ts中看,有注解.

npm 上传包命令

npm publish --registry http://registry.npmjs.org npm config set registry https://registry.npmjs.org npm config set registry https://registry.npm.taobao.org npm publish --access public --registry http://registry.npmjs.org npm config set scope mac-xiang --global

npm version prerelease

npm version prepatch 别笑,记不住