dy-utils

长沙洞幺科技有限公司

Usage no npm install needed!

<script type="module">
  import dyUtils from 'https://cdn.skypack.dev/dy-utils';
</script>

README

长沙洞幺科技有限公司


精简化公司内部高效函数轮子

NPM Version Codecov

库里面包含时间处理,时间处理高度依赖 dayjs ,字符串处理,函数处理,等一些高阶函数的调用,提供开发效率,避免重复造轮子。

* 💪 Typescript
* 🔥 vite
* 🌐 All browsers supported

Getting Started

npm install dy-utils --save

Method

使用utils 获取本周 查找天数为一年的某一天...


 import dyUtils from "dyUtils";

// 判断是否是本周
dyUtils.isThisWeek(new Date()) // true

// 格式化时间 
dyUtils.formatAllDate(new Date()) // 2021-12-7 18:30:40

API 内容说明跳转