0.1.13 • Published 9 months ago

utils-nxhl-sz v0.1.13

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
9 months ago

utils-nxhl-sz

通用工具函数

平台兼容性

全平台

v2、v3、uniapp(全端)、pc、小程序等 js 项目

支持 ts

上传方法

  1. npm run build
  2. 手动修改 package.json 中 version 版本号
  3. npm publish

前言

项目中我们常常需要编写一些函数,用来处理 一些简单的逻辑,不同的项目中用到的工具函数大部门都是一样的,所以每个项目都要重复的添加这些函数,为了减少这部分重复劳动,我们可以创建一个工具函数库将复用率比较高的函数添加到这个库里面,还可以上传到 npm,简化添加使用的步骤。 1.使用方法: 1.1 安装工具库:

npm i utils-nxhl-sz --save
cnpm i utils-nxhl-sz --save
yarn add utils-nxhl-sz

1.2 业务组件使用方法 // 按需引入到业务代码,减少前端工程构建体积

import { dayOfYear } from "utils-nxhl-sz";
const a = dayOfYear("2023-05-25"); // 返回 145,今天是今年的第145天

1.3 查看是否有新版本

npm info utils-nxhl-sz versions(查看所有版本)
npm view utils-nxhl-sz version(查看当前最新版本)

1.4 升级工具库到最新版本

npm install utils-nxhl-sz@latest -D

参考文档

【腾讯文档】前端工具库 UTILS https://docs.qq.com/doc/DQ0xhTFNycUx0TWlL

0.1.13

9 months ago

0.1.12

9 months ago

0.1.11

10 months ago

0.1.10

10 months ago

0.1.9

10 months ago

0.1.8

10 months ago

0.1.7

10 months ago

0.1.6

10 months ago

0.1.5

11 months ago

0.1.4

11 months ago

0.1.3

11 months ago

0.1.2

12 months ago

0.1.1

12 months ago