Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/wmui/uuujs

Utils
https://github.com/wmui/uuujs

Last synced: 19 days ago
JSON representation

Utils

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支持

已添加类型声明文件,函数有详细注释

**注意:** 函数的测试用例还在不断添加中