0.2.9 • Published 4 months ago

tigris-utils v0.2.9

Weekly downloads
-
License
MIT
Repository
-
Last release
4 months ago

tigris-utils

介绍

前端业务常用工具函数库。查看在线文档

安装教程

npm install tigris-utils

Note: add --save if you are using npm < 5.0.0

使用说明

Use in a browser(CDN):

<script src="utils.umd.js"></script>

Use In Node.js:

// Load the full build.
var utils = require('tigris-utils');

// Load method categories.
var isArray = require('tigris-utils/lib/isArray');
or
var { isArray } = require('tigris-utils');

Use In ES6:

// Load the full build.
import utils from 'tigris-utils';

// Load method categories.
import isArray from 'tigris-utils/lib/isArray';
or
import { isArray } from 'tigris-utils';

按需引入

Usage

npm install babel-plugin-import --save-dev

Via .babelrc or babel-loader.

{
  "plugins": [["import", options]]
}

options

options can be object.

{
  "libraryName": "tigris-utils",
  "libraryDirectory": "lib",
  "camel2DashComponentName": false,  // default: true
}

For example, the default behavior

import { isArray } from 'tigris-utils';
↓ ↓ ↓ ↓ ↓ ↓
var isArray = require('tigris-utils/lib/isArray');

支持情况

Chrome 74-75, Firefox 66-67, IE 11, Edge 18, Safari 11-12, & Node.js 8-12.

注:采用 jest + jsdom 进行单元测试,报告如下:

  • Statements:98.96%
  • Branches:97.22%
  • Functions: 99.28%
  • Lines: 99.02%
0.1.0

4 months ago

0.2.1

4 months ago

0.1.2

4 months ago

0.2.0

4 months ago

0.1.1

4 months ago

0.2.7

4 months ago

0.1.8

4 months ago

0.0.9

4 months ago

0.2.6

4 months ago

0.1.7

4 months ago

0.2.9

4 months ago

0.2.8

4 months ago

0.1.9

4 months ago

0.2.3

4 months ago

0.1.4

4 months ago

0.2.2

4 months ago

0.1.3

4 months ago

0.2.5

4 months ago

0.1.6

4 months ago

0.2.4

4 months ago

0.1.5

4 months ago

0.0.8

2 years ago

0.0.5

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago