Skip to content

Commit 2ce7a6c

Browse files
committed
chore: rename lazy-js-utils
1 parent 42190d9 commit 2ce7a6c

File tree

5 files changed

+21
-21
lines changed

5 files changed

+21
-21
lines changed

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<p align="center">
2-
<img height="200" src="./assets/kv.png" alt="simon-js-tool">
2+
<img height="200" src="./assets/kv.png" alt="lazy-js-utils">
33
</p>
4-
<p align="center"><a href="https://www.npmjs.com/package/simon-js-tool"><img src="https://img.shields.io/npm/v/simon-js-tool?color=3fb883&amp;label=" alt="NPM version"></a>
5-
<a href="https://www.npmjs.com/package/simon-js-tool"><img src="https://img.shields.io/npm/dm/simon-js-tool?style=social" alt="NPM version"></a>
6-
<a href="https://github.com/Simon-He95/simon-js-tool"><img src="https://img.shields.io/github/stars/Simon-He95/simon-js-tool?style=social" alt="NPM version"></a>
4+
<p align="center"><a href="https://www.npmjs.com/package/lazy-js-utils"><img src="https://img.shields.io/npm/v/lazy-js-utils?color=3fb883&amp;label=" alt="NPM version"></a>
5+
<a href="https://www.npmjs.com/package/lazy-js-utils"><img src="https://img.shields.io/npm/dm/lazy-js-utils?style=social" alt="NPM version"></a>
6+
<a href="https://github.com/Simon-He95/lazy-js-utils"><img src="https://img.shields.io/github/stars/Simon-He95/lazy-js-utils?style=social" alt="NPM version"></a>
77
</p>
88
<p align="center"><a href="http://vitepress.hejian.club/">文档</a></p>
99
<p align="center"> <a href="./README_en.md">English</a> | 简体中文</p>
1010

11-
目前整理了<strong>100+</strong>的常用函数,还在持续更新中...,你的认可是对我最大的鼓励 :hearts:
11+
目前整理了<strong>200左右</strong>的常用函数,还在持续更新中...,你的认可是对我最大的鼓励 :hearts:
1212

1313

1414
## :100: 亮点
@@ -19,7 +19,7 @@
1919

2020
## &#x270B; 例子
2121
```js
22-
import { animationFrameWrapper, insertElement, useEventListener, useMutationObserver } from 'simon-js-tool'
22+
import { animationFrameWrapper, insertElement, useEventListener, useMutationObserver } from 'lazy-js-utils'
2323
// 监听container的变化, 你不在需要const container = ref<HTMLElement>
2424
useMutationObserver('#container', (mutationsList, observer) => {
2525
console.log(mutationsList)
@@ -53,11 +53,11 @@ removeElement('.content')
5353

5454
## :book: 使用说明
5555
```bash
56-
npm i simon-js-tool # 安装
56+
npm i lazy-js-utils # 安装
5757

5858
import {
5959
deepCompare
60-
} from 'simon-js-tool' # 按需引入
60+
} from 'lazy-js-utils' # 按需引入
6161

6262
```
6363

@@ -71,4 +71,4 @@ import {
7171
[MIT](./license)
7272

7373
## GitHub地址
74-
[欢迎PR](https://github.com/Simon-He95/simon-js-tool)
74+
[欢迎PR](https://github.com/Simon-He95/lazy-js-utils)

README_en.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<p align="center">
2-
<img height="200" src="./assets/kv.png" alt="simon-js-tool">
2+
<img height="200" src="./assets/kv.png" alt="lazy-js-utils">
33
</p>
4-
<p align="center"><a href="https://www.npmjs.com/package/simon-js-tool"><img src="https://img.shields.io/npm/v/simon-js-tool?color=3fb883&amp;label=" alt="NPM version"></a>
5-
<a href="https://www.npmjs.com/package/simon-js-tool"><img src="https://img.shields.io/npm/dm/simon-js-tool?style=social" alt="NPM version"></a>
6-
<a href="https://github.com/Simon-He95/simon-js-tool"><img src="https://img.shields.io/github/stars/Simon-He95/simon-js-tool?style=social" alt="NPM version"></a>
4+
<p align="center"><a href="https://www.npmjs.com/package/lazy-js-utils"><img src="https://img.shields.io/npm/v/lazy-js-utils?color=3fb883&amp;label=" alt="NPM version"></a>
5+
<a href="https://www.npmjs.com/package/lazy-js-utils"><img src="https://img.shields.io/npm/dm/lazy-js-utils?style=social" alt="NPM version"></a>
6+
<a href="https://github.com/Simon-He95/lazy-js-utils"><img src="https://img.shields.io/github/stars/Simon-He95/lazy-js-utils?style=social" alt="NPM version"></a>
77
</p>
88
<p align="center"><a href="http://vitepress.hejian.club/">Docs</a></p>
99
<p align="center"> English | <a href="./README.md">简体中文</a></p>
1010

11-
At present, I have sorted out <strong>100+</strong> commonly used functions, and I am still updating..., and your recognition is the biggest encouragement to me :hearts:
11+
At present, I have sorted out <strong>about 200</strong> commonly used functions, and I am still updating..., and your recognition is the biggest encouragement to me :hearts:
1212

1313
## :100: Highlights
1414
- Pure JS utility functions, Can be used in any environment where JS can be executed
@@ -18,7 +18,7 @@ At present, I have sorted out <strong>100+</strong> commonly used functions, and
1818

1919
## &#x270B; Example
2020
```js
21-
import { animationFrameWrapper, insertElement, useEventListener, useMutationObserver } from 'simon-js-tool'
21+
import { animationFrameWrapper, insertElement, useEventListener, useMutationObserver } from 'lazy-js-utils'
2222
// To listen for container changes, you don't need const container <HTMLElement>= ref
2323
useMutationObserver('#container', (mutationsList, observer) => {
2424
console.log(mutationsList)
@@ -52,11 +52,11 @@ removeElement('.content')
5252

5353
## :book: Instructions for use
5454
```bash
55-
npm i simon-js-tool # Installation
55+
npm i lazy-js-utils # Installation
5656

5757
import {
5858
deepCompare
59-
} from 'simon-js-tool' # Ingestion on demand
59+
} from 'lazy-js-utils' # Ingestion on demand
6060

6161
```
6262

@@ -66,4 +66,4 @@ import {
6666
[Sponsor me](https://github.com/Simon-He95/sponsor)
6767

6868
## GitHub地址
69-
[Welcome to PR](https://github.com/Simon-He95/simon-js-tool)
69+
[Welcome to PR](https://github.com/Simon-He95/lazy-js-utils)

assets/kv.png

3.7 KB
Loading

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "simon-js-tool",
3-
"version": "4.2.1",
2+
"name": "lazy-js-utils",
3+
"version": "0.0.0",
44
"packageManager": "[email protected]",
55
"description": "js-tool",
66
"author": "Simon He",

src/useAnimationFrame.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export function useAnimationFrame(fn: (timestamp: number) => void, delta = 1000, autoStop = false): (() => void) {
1+
export function useAnimationFrame(fn: (timestamp: number) => void, delta = 0, autoStop = false): (() => void) {
22
let start: number
33
let work = true
44
const animationFrame = window.requestAnimationFrame

0 commit comments

Comments
 (0)