-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
215 additions
and
134 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# coverage | ||
|
||
File | % Funcs | % Lines | Uncovered Line #s | ||
----------------------------------|---------|---------|------------------- | ||
All files | 100.00 | 100.00 | | ||
src/_base.ts | 100.00 | 100.00 | | ||
src/array/createArray.ts | 100.00 | 100.00 | | ||
src/array/difference.ts | 100.00 | 100.00 | | ||
src/array/first.ts | 100.00 | 100.00 | | ||
src/array/flatten.ts | 100.00 | 100.00 | | ||
src/array/index.ts | 100.00 | 100.00 | | ||
src/array/last.ts | 100.00 | 100.00 | | ||
src/array/unique.ts | 100.00 | 100.00 | | ||
src/index.ts | 100.00 | 100.00 | | ||
src/is/index.ts | 100.00 | 100.00 | | ||
src/is/isArray.ts | 100.00 | 100.00 | | ||
src/is/isBigint.ts | 100.00 | 100.00 | | ||
src/is/isBoolean.ts | 100.00 | 100.00 | | ||
src/is/isDate.ts | 100.00 | 100.00 | | ||
src/is/isDef.ts | 100.00 | 100.00 | | ||
src/is/isFalsy.ts | 100.00 | 100.00 | | ||
src/is/isFunction.ts | 100.00 | 100.00 | | ||
src/is/isJson.ts | 100.00 | 100.00 | | ||
src/is/isMap.ts | 100.00 | 100.00 | | ||
src/is/isNull.ts | 100.00 | 100.00 | | ||
src/is/isNumber.ts | 100.00 | 100.00 | | ||
src/is/isObject.ts | 100.00 | 100.00 | | ||
src/is/isPrimitive.ts | 100.00 | 100.00 | | ||
src/is/isRefData.ts | 100.00 | 100.00 | | ||
src/is/isRegExp.ts | 100.00 | 100.00 | | ||
src/is/isSet.ts | 100.00 | 100.00 | | ||
src/is/isString.ts | 100.00 | 100.00 | | ||
src/is/isSymbol.ts | 100.00 | 100.00 | | ||
src/is/isTruth.ts | 100.00 | 100.00 | | ||
src/is/isUnDef.ts | 100.00 | 100.00 | | ||
src/is/isUndefined.ts | 100.00 | 100.00 | | ||
src/is/isWeakMap.ts | 100.00 | 100.00 | | ||
src/is/isWeakSet.ts | 100.00 | 100.00 | | ||
src/number/index.ts | 100.00 | 100.00 | | ||
src/number/numberSeparate.ts | 100.00 | 100.00 | | ||
src/object/index.ts | 100.00 | 100.00 | | ||
src/object/removeKey.ts | 100.00 | 100.00 | | ||
src/other/deepClone.ts | 100.00 | 100.00 | | ||
src/other/index.ts | 100.00 | 100.00 | | ||
src/other/radom.ts | 100.00 | 100.00 | | ||
src/other/uuid.ts | 100.00 | 100.00 | | ||
src/validator/emailValidator.ts | 100.00 | 100.00 | | ||
src/validator/idCardValidator.ts | 100.00 | 100.00 | | ||
src/validator/index.ts | 100.00 | 100.00 | | ||
src/validator/numberValidator.ts | 100.00 | 100.00 | | ||
src/validator/phoneValidator.ts | 100.00 | 100.00 | | ||
src/validator/telValidator.ts | 100.00 | 100.00 | | ||
src/validator/zhValidator.ts | 100.00 | 100.00 | | ||
src/window/copyText.ts | 100.00 | 100.00 | | ||
src/window/index.ts | 100.00 | 100.00 | | ||
test/happydom.ts | 100.00 | 100.00 | |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
export default { | ||
text: '简介', | ||
items: [ | ||
{ text: '什么是@renzp/utils?', link: '/guide/whatIs' }, | ||
{ text: '快速开始', link: '/' }, | ||
{ text: '什么是@renzp/utils?', link: '/' }, | ||
{ text: '快速开始', link: '/guide/gettingStarted' }, | ||
], | ||
sort: 0, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,63 +1,22 @@ | ||
# 什么是@renzp/utils? | ||
<p align="center"> | ||
<a href="https://github.com/renzp94/utils" target="_blank" rel="noopener noreferrer"><img width="200" src="/logo.png" alt="@renzp/utils logo" style="border-radius: 50%;display: inline-block"></a> | ||
</p> | ||
<p align="center"> | ||
<a href="https://github.com/renzp94/utils/coverage.md" style="display: inline-block"> | ||
<img src="/coverage.svg" alt="Code coverage"> | ||
</a> | ||
<a href="https://bundlephobia.com/package/@renzp/utils" style="display: inline-block;margin-left: 4px;"> | ||
<img src="https://img.shields.io/bundlephobia/minzip/@renzp/utils?label=minzipped" alt="Bundle Size"> | ||
</a> | ||
<a href="https://npmcharts.com/compare/@renzp/utils?minimal=true" style="display: inline-block;margin-left: 4px;"> | ||
<img src="https://img.shields.io/npm/dm/@renzp/utils.svg?sanitize=true" alt="Downloads"> | ||
</a> | ||
<a href="https://www.npmjs.com/package/@renzp/utils" style="display: inline-block;margin-left: 4px;"> | ||
<img src="https://img.shields.io/npm/v/@renzp/utils.svg?sanitize=true" alt="Version"> | ||
</a> | ||
<a href="https://www.npmjs.com/package/@renzp/utils" style="display: inline-block;margin-left: 4px;"> | ||
<img src="https://img.shields.io/npm/l/@renzp/utils.svg?sanitize=true" alt="License"> | ||
</a> | ||
</p> | ||
|
||
`@renzp/utils`是一款零依赖、强类型、实用、ESM优先的Javascript/Typescript工具库。 | ||
|
||
## coverage | ||
|
||
> 由于使用的`bun test`无法生成`coverage`HTML文件,所以在此列一下`coverage` | ||
|
||
| File | % Funcs | % Lines | | ||
| -------------------------------- | ------- | ------- | | ||
| All files | 100.00 | 100.00 | | ||
| src/_base.ts | 100.00 | 100.00 | | ||
| src/array/createArray.ts | 100.00 | 100.00 | | ||
| src/array/difference.ts | 100.00 | 100.00 | | ||
| src/array/first.ts | 100.00 | 100.00 | | ||
| src/array/flatten.ts | 100.00 | 100.00 | | ||
| src/array/index.ts | 100.00 | 100.00 | | ||
| src/array/last.ts | 100.00 | 100.00 | | ||
| src/array/unique.ts | 100.00 | 100.00 | | ||
| src/index.ts | 100.00 | 100.00 | | ||
| src/is/index.ts | 100.00 | 100.00 | | ||
| src/is/isArray.ts | 100.00 | 100.00 | | ||
| src/is/isBigint.ts | 100.00 | 100.00 | | ||
| src/is/isBoolean.ts | 100.00 | 100.00 | | ||
| src/is/isDate.ts | 100.00 | 100.00 | | ||
| src/is/isDef.ts | 100.00 | 100.00 | | ||
| src/is/isFalsy.ts | 100.00 | 100.00 | | ||
| src/is/isFunction.ts | 100.00 | 100.00 | | ||
| src/is/isJson.ts | 100.00 | 100.00 | | ||
| src/is/isMap.ts | 100.00 | 100.00 | | ||
| src/is/isNull.ts | 100.00 | 100.00 | | ||
| src/is/isNumber.ts | 100.00 | 100.00 | | ||
| src/is/isObject.ts | 100.00 | 100.00 | | ||
| src/is/isPrimitive.ts | 100.00 | 100.00 | | ||
| src/is/isRefData.ts | 100.00 | 100.00 | | ||
| src/is/isRegExp.ts | 100.00 | 100.00 | | ||
| src/is/isSet.ts | 100.00 | 100.00 | | ||
| src/is/isString.ts | 100.00 | 100.00 | | ||
| src/is/isSymbol.ts | 100.00 | 100.00 | | ||
| src/is/isTruth.ts | 100.00 | 100.00 | | ||
| src/is/isUnDef.ts | 100.00 | 100.00 | | ||
| src/is/isUndefined.ts | 100.00 | 100.00 | | ||
| src/is/isWeakMap.ts | 100.00 | 100.00 | | ||
| src/is/isWeakSet.ts | 100.00 | 100.00 | | ||
| src/number/index.ts | 100.00 | 100.00 | | ||
| src/number/numberSeparate.ts | 100.00 | 100.00 | | ||
| src/object/index.ts | 100.00 | 100.00 | | ||
| src/object/removeKey.ts | 100.00 | 100.00 | | ||
| src/other/deepClone.ts | 100.00 | 100.00 | | ||
| src/other/index.ts | 100.00 | 100.00 | | ||
| src/other/radom.ts | 100.00 | 100.00 | | ||
| src/other/uuid.ts | 100.00 | 100.00 | | ||
| src/validator/emailValidator.ts | 100.00 | 100.00 | | ||
| src/validator/idCardValidator.ts | 100.00 | 100.00 | | ||
| src/validator/index.ts | 100.00 | 100.00 | | ||
| src/validator/numberValidator.ts | 100.00 | 100.00 | | ||
| src/validator/phoneValidator.ts | 100.00 | 100.00 | | ||
| src/validator/telValidator.ts | 100.00 | 100.00 | | ||
| src/validator/zhValidator.ts | 100.00 | 100.00 | | ||
| src/window/copyText.ts | 100.00 | 100.00 | | ||
| src/window/index.ts | 100.00 | 100.00 | | ||
| test/happydom.ts | 100.00 | 100.00 | |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.