Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wmui/uuujs
Utils
https://github.com/wmui/uuujs
Last synced: 19 days ago
JSON representation
Utils
- Host: GitHub
- URL: https://github.com/wmui/uuujs
- Owner: wmui
- License: mit
- Created: 2019-06-27T04:24:28.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-11T04:23:49.000Z (about 2 years ago)
- Last Synced: 2024-11-28T21:44:21.826Z (about 1 month ago)
- Language: JavaScript
- Size: 1.99 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 24
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## UUUJS
[![Build Status](https://travis-ci.org/wmui/uuujs.svg?branch=master)](https://travis-ci.org/wmui/uuujs)
[![Coverage Status](https://coveralls.io/repos/github/wmui/uuujs/badge.svg?branch=master)](https://coveralls.io/github/wmui/uuujs?branch=master)
[![LICENSE MIT](https://img.shields.io/npm/l/uuujs.svg)](https://www.npmjs.com/package/uuujs)> uuujs - 无依赖前端工具函数库
## 使用方式
uuujs支持在浏览器环境和node环境中使用
### 浏览器环境
[uuu.min.js](https://github.com/wmui/uuujs/blob/master/dist/uuu.min.js)
```html
var t = uuu.getType({}); // Object
```
或者
```js
// 全部引入
import uuu from 'uuujs';// 按需引入
import getType from 'uuujs/getType';
```### Node环境
```js
// 全部引入
const uuu = require('uuujs');// 按需引入
const getType = require('uuujs/getType');
```## TS支持
已添加类型声明文件,函数有详细注释
**注意:** 函数的测试用例还在不断添加中