X12 Common
npm install @x12/common@x12/common  
```
npm install @x12/common --save
ES7:
`js
const { md5 } = require('@x12/common');
// or
import { md5 } from '@x12/common';
console.log(md5('1'));
`
#### getTimestamp() → {int}
获取UNIX标准时间戳
##### Returns:
UNIX标准时间戳
#### isEmpty(obj) → {boolean}
判断是否为空
##### Parameters:
| Name | Type | Description |
|---|---|---|
obj | * | 任意 |
##### Returns:
真为空,假为非空
#### isNumberString(obj) → {boolean}
判断是否为数字字符串
##### Parameters:
| Name | Type | Description |
|---|---|---|
obj | * | 任意 |
##### Returns:
是否为数字字符串
#### JSONparse(str, default) → {object}
安全处理 JSON
##### Parameters:
| Name | Type | Description |
|---|---|---|
str | string | JSON字符串 |
| default` | object | 默认值 {} |
##### Returns:
JSON对象
Apache 2.0