open-index/open-npm huggingface dataset:
npm package: @jswork/next-timeago
Description: A time ago implement.
Author: afei
Latest version: 1.0.0

# next-timeago
> A time ago implement.

[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]

## installation
```bash
npm install -S @jswork/next-timeago
```

## usage
```js
import '@jswork/next-timeago';

const str = nx.timeago('2017-03-15 13:10:45');
console.log(str);
```

## license
Code released under [the MIT license](https://github.com/afeiship/next-timeago/blob/master/LICENSE.txt).

[version-image]: https://img.shields.io/npm/v/@jswork/next-timeago
[version-url]: https://npmjs.org/package/@jswork/next-timeago

[license-image]: https://img.shields.io/npm/l/@jswork/next-timeago
[license-url]: https://github.com/afeiship/next-timeago/blob/master/LICENSE.txt

[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-timeago
[size-url]: https://github.com/afeiship/next-timeago/blob/master/dist/next-timeago.min.js

[download-image]: https://img.shields.io/npm/dm/@jswork/next-timeago
[download-url]: https://www.npmjs.com/package/@jswork/next-timeago
npm package: @jswork/next-times
Description: Invokes the iteratee function n times.
Author: afei
Latest version: 1.0.1

# next-times
> Invokes the iteratee function n times.

[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]

## installation
```bash
npm install -S @jswork/next-times
```

## usage
```js
import '@jswork/next-times';

const res = nx.times(3, (index) => {
  return { index };
});

// [ { index: 0 }, { index: 1 }, { index: 2 } ]
```

## license
Code released under [the MIT license](https://github.com/afeiship/next-times/blob/master/LICENSE.txt).

[version-image]: https://img.shields.io/npm/v/@jswork/next-times
[version-url]: https://npmjs.org/package/@jswork/next-times

[license-image]: https://img.shields.io/npm/l/@jswork/next-times
[license-url]: https://github.com/afeiship/next-times/blob/master/LICENSE.txt

[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-times
[size-url]: https://github.com/afeiship/next-times/blob/master/dist/next-times.min.js

[download-image]: https://img.shields.io/npm/dm/@jswork/next-times
[download-url]: https://www.npmjs.com/package/@jswork/next-times
npm package: @jswork/next-tlog
Description: Show log to document title.
Author: afei
Latest version: 1.0.0

# next-tlog
> Show log to document title.

[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]

## installation
```bash
npm install -S @jswork/next-tlog
```

## usage
```js
import '@jswork/next-tlog';

nx.tlog('log1');
nx.tlog('log2', 'log3');
```

## license
Code released under [the MIT license](https://github.com/afeiship/next-tlog/blob/master/LICENSE.txt).

[version-image]: https://img.shields.io/npm/v/@jswork/next-tlog
[version-url]: https://npmjs.org/package/@jswork/next-tlog

[license-image]: https://img.shields.io/npm/l/@jswork/next-tlog
[license-url]: https://github.com/afeiship/next-tlog/blob/master/LICENSE.txt

[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-tlog
[size-url]: https://github.com/afeiship/next-tlog/blob/master/dist/next-tlog.min.js

[download-image]: https://img.shields.io/npm/dm/@jswork/next-tlog
[download-url]: https://www.npmjs.com/package/@jswork/next-tlog
npm package: @jswork/next-tmpl
Description: A simple template engine based on next.
Author: afei
Latest version: 1.0.7

# next-tmpl
> A simple template engine based on next.

[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]

## installation
```bash
npm install -S @jswork/next-tmpl
```

## usage
```js
import '@jswork/next-tmpl';

nx.tmpl('I am {0}, I can live {1} year', ['afei', 100]);
nx.tmpl('I am {name}, I can live {age} year', { name:'afei', age:100});

// I am afei, I can live 100 year
```

## license
Code released under [the MIT license](https://github.com/afeiship/next-tmpl/blob/master/LICENSE.txt).

[version-image]: https://img.shields.io/npm/v/@jswork/next-tmpl
[version-url]: https://npmjs.org/package/@jswork/next-tmpl

[license-image]: https://img.shields.io/npm/l/@jswork/next-tmpl
[license-url]: https://github.com/afeiship/next-tmpl/blob/master/LICENSE.txt

[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-tmpl
[size-url]: https://github.com/afeiship/next-tmpl/blob/master/dist/next-tmpl.min.js

[download-image]: https://img.shields.io/npm/dm/@jswork/next-tmpl
[download-url]: https://www.npmjs.com/package/@jswork/next-tmpl
npm package: @jswork/next-to-action
Description: Make an action callback for target.
Author: afei
Latest version: 1.0.1

# next-to-action
> Make an action callback for target.

[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]

## installation
```bash
npm install -S @jswork/next-to-action
```

## usage
```js
import '@jswork/next-to-action';

const trimer = nx.toAction('trim');
const list = [
  '  a',
  'b  ',
  ' c '
];

const res = list.map(trimer);

// ['a','b','c'];
```

## license
Code released under [the MIT license](https://github.com/afeiship/next-to-action/blob/master/LICENSE.txt).

[version-image]: https://img.shields.io/npm/v/@jswork/next-to-action
[version-url]: https://npmjs.org/package/@jswork/next-to-action

[license-image]: https://img.shields.io/npm/l/@jswork/next-to-action
[license-url]: https://github.com/afeiship/next-to-action/blob/master/LICENSE.txt

[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-to-action
[size-url]: https://github.com/afeiship/next-to-action/blob/master/dist/next-to-action.min.js

[download-image]: https://img.shields.io/npm/dm/@jswork/next-to-action
[download-url]: https://www.npmjs.com/package/@jswork/next-to-action
npm package: @jswork/next-to-array
Description: To array for object or array like.
Author: afei
Latest version: 1.0.0

# next-to-array
> To array for object or array like.

[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]

## installation
```bash
npm install -S @jswork/next-to-array
```

## usage
```js
import '@jswork/next-to-array';

const obj = {
  0: 'a',
  1: 'b',
  2: 'c'
};
nx.toArray(obj);    //['a','b','c'];
```

## license
Code released under [the MIT license](https://github.com/afeiship/next-to-array/blob/master/LICENSE.txt).

[version-image]: https://img.shields.io/npm/v/@jswork/next-to-array
[version-url]: https://npmjs.org/package/@jswork/next-to-array

[license-image]: https://img.shields.io/npm/l/@jswork/next-to-array
[license-url]: https://github.com/afeiship/next-to-array/blob/master/LICENSE.txt

[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-to-array
[size-url]: https://github.com/afeiship/next-to-array/blob/master/dist/next-to-array.min.js

[download-image]: https://img.shields.io/npm/dm/@jswork/next-to-array
[download-url]: https://www.npmjs.com/package/@jswork/next-to-array
npm package: @jswork/next-to-clipboard
Description: Copy text to clipboard.
Author: afei
Latest version: 1.0.3

# next-to-clipboard
> Copy text to clipboard.

[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]

## installation
```bash
npm install -S @jswork/next-to-clipboard
```

## usage
```js
import '@jswork/next-to-clipboard';

document.getElementById('btn').onclick = function() {
  nx.toClipboard('TEXT_FEI' + Math.random());
};
```

## license
Code released under [the MIT license](https://github.com/afeiship/next-to-clipboard/blob/master/LICENSE.txt).

[version-image]: https://img.shields.io/npm/v/@jswork/next-to-clipboard
[version-url]: https://npmjs.org/package/@jswork/next-to-clipboard

[license-image]: https://img.shields.io/npm/l/@jswork/next-to-clipboard
[license-url]: https://github.com/afeiship/next-to-clipboard/blob/master/LICENSE.txt

[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-to-clipboard
[size-url]: https://github.com/afeiship/next-to-clipboard/blob/master/dist/next-to-clipboard.min.js

[download-image]: https://img.shields.io/npm/dm/@jswork/next-to-clipboard
[download-url]: https://www.npmjs.com/package/@jswork/next-to-clipboard
npm package: @jswork/next-to-dingtalk-url
Description: Wrap url in dingtalk.
Author: afei
Latest version: 1.0.0

# next-to-dingtalk-url
> Wrap url in dingtalk.

[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]

## installation
```bash
npm install -S @jswork/next-to-dingtalk-url
```

## usage
```js
import '@jswork/next-to-dingtalk-url';

const url = 'https://www.mipengine.org/';
const dingUrl = nx.toDingtalkUrl(url);

console.log(dingUrl);
// dingtalk://dingtalkclient/page/link?pc_slide=true&url=https%3A%2F%2Fwww.mipengine.org%2F
```

## license
Code released under [the MIT license](https://github.com/afeiship/next-to-dingtalk-url/blob/master/LICENSE.txt).

[version-image]: https://img.shields.io/npm/v/@jswork/next-to-dingtalk-url
[version-url]: https://npmjs.org/package/@jswork/next-to-dingtalk-url

[license-image]: https://img.shields.io/npm/l/@jswork/next-to-dingtalk-url
[license-url]: https://github.com/afeiship/next-to-dingtalk-url/blob/master/LICENSE.txt

[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-to-dingtalk-url
[size-url]: https://github.com/afeiship/next-to-dingtalk-url/blob/master/dist/next-to-dingtalk-url.min.js

[download-image]: https://img.shields.io/npm/dm/@jswork/next-to-dingtalk-url
[download-url]: https://www.npmjs.com/package/@jswork/next-to-dingtalk-url
npm package: @jswork/next-to-thousands
Description: To thousands for number.
Author: afei
Latest version: 1.0.1

# next-to-thousands
> To thousands for number.

[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]

## installation
```bash
npm install -S @jswork/next-to-thousands
```

## usage
```js
import '@jswork/next-to-thousands';

nx.toThousands('10000')  //10,000
nx.toThousands('100')    //100
nx.toThousands(10000)    //10,000
nx.toThousands(1000,'|') //1|000
```

## license
Code released under [the MIT license](https://github.com/afeiship/next-to-thousands/blob/master/LICENSE.txt).

[version-image]: https://img.shields.io/npm/v/@jswork/next-to-thousands
[version-url]: https://npmjs.org/package/@jswork/next-to-thousands

[license-image]: https://img.shields.io/npm/l/@jswork/next-to-thousands
[license-url]: https://github.com/afeiship/next-to-thousands/blob/master/LICENSE.txt

[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-to-thousands
[size-url]: https://github.com/afeiship/next-to-thousands/blob/master/dist/next-to-thousands.min.js

[download-image]: https://img.shields.io/npm/dm/@jswork/next-to-thousands
[download-url]: https://www.npmjs.com/package/@jswork/next-to-thousands
npm package: @jswork/next-toastify
Description: nx.toast for react-toastify.
Author: afei
Latest version: 1.0.1

# next-toastify
> nx.toast for react-toastify.

[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]

## installation
```bash
yarn add react-toastify @jswork/next-toastify
```

## usage
```js
import React from 'react';
import { ToastContainer } from 'react-toastify';
import '@jswork/next-toastify';
import 'react-toastify/dist/ReactToastify.css';
// minified version is also included
// import 'react-toastify/dist/ReactToastify.min.css';

function App(){
  const notify = () => nx.toast("Wow so easy !");

  return (
    <div>
      <button onClick={notify}>Notify !</button>
      <ToastContainer />
    </div>
  );
}
```

## license
Code released under [the MIT license](https://github.com/afeiship/next-toastify/blob/master/LICENSE.txt).

[version-image]: https://img.shields.io/npm/v/@jswork/next-toastify
[version-url]: https://npmjs.org/package/@jswork/next-toastify

[license-image]: https://img.shields.io/npm/l/@jswork/next-toastify
[license-url]: https://github.com/afeiship/next-toastify/blob/master/LICENSE.txt

[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-toastify
[size-url]: https://github.com/afeiship/next-toastify/blob/master/dist/next-toastify.min.js

[download-image]: https://img.shields.io/npm/dm/@jswork/next-toastify
[download-url]: https://www.npmjs.com/package/@jswork/next-toastify
npm package: @jswork/next-toggle
Description: Toggle array element.
Author: afei
Latest version: 1.0.0

# next-toggle
> Toggle array element.

[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]

## installation
```bash
npm install -S @jswork/next-toggle
```

## usage
```js
import '@jswork/next-toggle';

const arr = [1,2,3,4];

nx.toggle(arr, 5);
// [1,2,3,4,5]
nx.toggle(arr, 5);
// [1,2,3,4]
```

## license
Code released under [the MIT license](https://github.com/afeiship/next-toggle/blob/master/LICENSE.txt).

[version-image]: https://img.shields.io/npm/v/@jswork/next-toggle
[version-url]: https://npmjs.org/package/@jswork/next-toggle

[license-image]: https://img.shields.io/npm/l/@jswork/next-toggle
[license-url]: https://github.com/afeiship/next-toggle/blob/master/LICENSE.txt

[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-toggle
[size-url]: https://github.com/afeiship/next-toggle/blob/master/dist/next-toggle.min.js

[download-image]: https://img.shields.io/npm/dm/@jswork/next-toggle
[download-url]: https://www.npmjs.com/package/@jswork/next-toggle
npm package: @jswork/next-toggle-to
Description: Toggle to some value for next.
Author: afei
Latest version: 1.1.5

# next-toggle-to
> Toggle to some value for next.

[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]

## installation
```bash
npm install -S @jswork/next-toggle-to
```

## usage
```js
import '@jswork/next-toggle-to';

const items = [
  { value: 'deposit', label: '保证金帐户', price: '2000' },
  { value: 'extra', label: '使用余额', price: '1000' },
  { value: 'de1', label: '使用余额xxx', price: '1000' },
  { value: 'de2', label: '使用余额yyy', price: '1000' }
];

const target = { value: 'de1', label: '使用余额xxx', price: '1000' };
const res = nx.toggleTo(items, target, { value: false, path: 'value'});

/*
[
  { value: 'deposit', label: '保证金帐户', price: '2000' },
  { value: 'extra', label: '使用余额', price: '1000' },
  { value: 'de2', label: '使用余额yyy', price: '1000' }
]
*/
```

## license
Code released under [the MIT license](https://github.com/afeiship/next-toggle-to/blob/master/LICENSE.txt).

[version-image]: https://img.shields.io/npm/v/@jswork/next-toggle-to
[version-url]: https://npmjs.org/package/@jswork/next-toggle-to

[license-image]: https://img.shields.io/npm/l/@jswork/next-toggle-to
[license-url]: https://github.com/afeiship/next-toggle-to/blob/master/LICENSE.txt

[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-toggle-to
[size-url]: https://github.com/afeiship/next-toggle-to/blob/master/dist/next-toggle-to.min.js

[download-image]: https://img.shields.io/npm/dm/@jswork/next-toggle-to
[download-url]: https://www.npmjs.com/package/@jswork/next-toggle-to
npm package: @jswork/next-tpl
Description: Render template with data-key binding.
Author: afei
Latest version: 1.0.3

# next-tpl
> Render template with data-key binding.

[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]

## installation
```bash
yarn add @jswork/next-tpl
```

## usage
```js
import '@jswork/next-tpl';

//DOCS here!
```

## license
Code released under [the MIT license](https://github.com/afeiship/next-tpl/blob/master/LICENSE.txt).

[version-image]: https://img.shields.io/npm/v/@jswork/next-tpl
[version-url]: https://npmjs.org/package/@jswork/next-tpl

[license-image]: https://img.shields.io/npm/l/@jswork/next-tpl
[license-url]: https://github.com/afeiship/next-tpl/blob/master/LICENSE.txt

[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-tpl
[size-url]: https://github.com/afeiship/next-tpl/blob/master/dist/next-tpl.min.js

[download-image]: https://img.shields.io/npm/dm/@jswork/next-tpl
[download-url]: https://www.npmjs.com/package/@jswork/next-tpl
npm package: @jswork/next-traverse
Description: Traverse object which has items key.
Author: afei
Latest version: 1.0.1

# next-traverse
> Traverse object which has items key.

[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]

## installation
```bash
npm install -S @jswork/next-traverse
```

## usage
```js
import '@feizheng/next-traverse';

const data = {
  tagName:'div',
  children:[
    {
      tagName:'p',
      content:'Content1'
    },
    {
      tagName:'p',
      content:'Content2'
    }
  ]
};

// walk your object/array:
nx.traverse(data,(index, value, children)=>{
  console.log(children);
}, { itemsKey: 'children'});
```

## options
| name     | type            | default | description                                           |
| -------- | --------------- | ------- | ----------------------------------------------------- |
| itemsKey | string/function | 'items' | The target children key.                              |
| context  | object          | null    | The loop context.                                     |
| inject   | boolean         | false   | If inject `independent` and `depth` to the tree item. |


## license
Code released under [the MIT license](https://github.com/afeiship/next-traverse/blob/master/LICENSE.txt).

[version-image]: https://img.shields.io/npm/v/@jswork/next-traverse
[version-url]: https://npmjs.org/package/@jswork/next-traverse

[license-image]: https://img.shields.io/npm/l/@jswork/next-traverse
[license-url]: https://github.com/afeiship/next-traverse/blob/master/LICENSE.txt

[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-traverse
[size-url]: https://github.com/afeiship/next-traverse/blob/master/dist/next-traverse.min.js

[download-image]: https://img.shields.io/npm/dm/@jswork/next-traverse
[download-url]: https://www.npmjs.com/package/@jswork/next-traverse
npm package: @jswork/next-tree
Description: Tree data for next.
Author: afei
Latest version: 1.0.1

# next-tree
> Tree data for next.

[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]

## installation
```bash
npm install -S @jswork/next-tree
```

## apis
| api         | params   | description                 |
| ----------- | -------- | --------------------------- |
| children    | callback | Find children only on level |
| parent      | callback | Find parent only one level  |
| descendants | callback | Find descendants recursion  |
| ancestors   | callback | Find ancestors recursion    |
| find        | callback | -                           |
| filter      | callback | -                           |
| search      | callback | -                           |
| table       | callback | Create table data           |


## usage
```js
import NxTree from '@jswork/next-tree';

const treeData = {
  label: '空间',
  value: '/admin/space',
  children: [
    {
      label: '空间-子级1',
      value: '/admin/space/:id',
      children: [
        {
          label: '空间导出',
          value: '/admin/space/:id/export'
        }
      ]
    },
    {
      label: '空间-子级2',
      value: '/admin/space2/:id',
      children: [
        {
          label: '空间导出222',
          value: '/admin/space/:id/expor2222t'
        }
      ]
    }
  ]
};

const item = NxTree.create(treeData).find((_, item) => item.label === '空间导出222');
const data = NxTree.serialize(item);

// results:
{
  label: '空间导出222',
  value: '/admin/space/:id/expor2222t',
  depth: 2,
  independent: true
}
```


## license
Code released under [the MIT license](https://github.com/afeiship/next-tree/blob/master/LICENSE.txt).

[version-image]: https://img.shields.io/npm/v/@jswork/next-tree
[version-url]: https://npmjs.org/package/@jswork/next-tree

[license-image]: https://img.shields.io/npm/l/@jswork/next-tree
[license-url]: https://github.com/afeiship/next-tree/blob/master/LICENSE.txt

[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-tree
[size-url]: https://github.com/afeiship/next-tree/blob/master/dist/next-tree.min.js

[download-image]: https://img.shields.io/npm/dm/@jswork/next-tree
[download-url]: https://www.npmjs.com/package/@jswork/next-tree
npm package: @jswork/next-tree-search
Description: Tree search methods for next.
Author: afei
Latest version: 1.0.0

# next-tree-search
> Tree search methods for next.

[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]

## installation
```bash
npm install -S @jswork/next-tree-search
```

## apis
| api    | params                    | description         |
| ------ | ------------------------- | ------------------- |
| find   | (data, callback, options) | Find one element.   |
| filter | (data, callback, options) | Find list elements. |

## usage
```js
import NxTreeSearch from '@jswork/next-tree-search';

NxTreeSearch.find(data, (index, item)=>{});
NxTreeSearch.filter(data, (index, item)=>{});
```

## license
Code released under [the MIT license](https://github.com/afeiship/next-tree-search/blob/master/LICENSE.txt).

[version-image]: https://img.shields.io/npm/v/@jswork/next-tree-search
[version-url]: https://npmjs.org/package/@jswork/next-tree-search

[license-image]: https://img.shields.io/npm/l/@jswork/next-tree-search
[license-url]: https://github.com/afeiship/next-tree-search/blob/master/LICENSE.txt

[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-tree-search
[size-url]: https://github.com/afeiship/next-tree-search/blob/master/dist/next-tree-search.min.js

[download-image]: https://img.shields.io/npm/dm/@jswork/next-tree-search
[download-url]: https://www.npmjs.com/package/@jswork/next-tree-search
npm package: @jswork/next-tree-walk
Description: Tree data walker.
Author: afei
Latest version: 1.0.7

# next-tree-walk
> Tree data walker.

[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]

## installation
```bash
npm install -S @jswork/next-tree-walk
```

## usage
```js
import '@jswork/next-tree-walk';

class MyComponent extends React.Component{
  get childView(){
    const { items, itemsKey, template } = this.props;
    return nx.treeWalk(items, { template, itemsKey: 'children' });
  }

  render(){
    return (
      <div>
        {this.childView}
      </div>
    )
  }
}
```

## license
Code released under [the MIT license](https://github.com/afeiship/next-tree-walk/blob/master/LICENSE.txt).

[version-image]: https://img.shields.io/npm/v/@jswork/next-tree-walk
[version-url]: https://npmjs.org/package/@jswork/next-tree-walk

[license-image]: https://img.shields.io/npm/l/@jswork/next-tree-walk
[license-url]: https://github.com/afeiship/next-tree-walk/blob/master/LICENSE.txt

[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-tree-walk
[size-url]: https://github.com/afeiship/next-tree-walk/blob/master/dist/next-tree-walk.min.js

[download-image]: https://img.shields.io/npm/dm/@jswork/next-tree-walk
[download-url]: https://www.npmjs.com/package/@jswork/next-tree-walk
npm package: @jswork/next-trigger-resize
Description: Manual trigger native resize event.
Author: afei
Latest version: 1.0.0

# next-trigger-resize
> Manual trigger native resize event.

[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]

## installation
```bash
npm install -S @jswork/next-trigger-resize
```

## usage
```js
import '@jswork/next-trigger-resize';

// trigger resize:
nx.triggerResize();
```

## resources
- https://stackoverflow.com/questions/39237485/how-to-trigger-window-resize-event-using-vanilla-javascript/39237538

## license
Code released under [the MIT license](https://github.com/afeiship/next-trigger-resize/blob/master/LICENSE.txt).

[version-image]: https://img.shields.io/npm/v/@jswork/next-trigger-resize
[version-url]: https://npmjs.org/package/@jswork/next-trigger-resize

[license-image]: https://img.shields.io/npm/l/@jswork/next-trigger-resize
[license-url]: https://github.com/afeiship/next-trigger-resize/blob/master/LICENSE.txt

[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-trigger-resize
[size-url]: https://github.com/afeiship/next-trigger-resize/blob/master/dist/next-trigger-resize.min.js

[download-image]: https://img.shields.io/npm/dm/@jswork/next-trigger-resize
[download-url]: https://www.npmjs.com/package/@jswork/next-trigger-resize
npm package: @jswork/next-trim
Description: Trim space or customize string.
Author: afei
Latest version: 1.0.0

# next-trim
> Trim space or customize string.

[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]

## installation
```bash
npm install -S @jswork/next-trim
```

## usage
```js
import '@jswork/next-trim';

//1. trim space:
nx.trim('  abc');
nx.trim('  abc  ');
nx.trim('abc  ');

// abc

// 2.trim char
nx.trim('/sso-login.html','/');
nx.trim('//sso-login.html','/');

// sso-login.html
```

## license
Code released under [the MIT license](https://github.com/afeiship/next-trim/blob/master/LICENSE.txt).

[version-image]: https://img.shields.io/npm/v/@jswork/next-trim
[version-url]: https://npmjs.org/package/@jswork/next-trim

[license-image]: https://img.shields.io/npm/l/@jswork/next-trim
[license-url]: https://github.com/afeiship/next-trim/blob/master/LICENSE.txt

[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-trim
[size-url]: https://github.com/afeiship/next-trim/blob/master/dist/next-trim.min.js

[download-image]: https://img.shields.io/npm/dm/@jswork/next-trim
[download-url]: https://www.npmjs.com/package/@jswork/next-trim
npm package: @jswork/next-trim-nl
Description: Trim enter/return char.
Author: afei
Latest version: 1.0.1

# next-trim-nl
> Trim enter/return char.

[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]

## installation
```bash
npm install -S @jswork/next-trim-nl
```

## usage
```js
import '@jswork/next-trim-nl';

nx.trimNl(`少年时
想碰到一个聂小倩
拼了性命爱一场
天亮前带着她的魂魄远走他乡`);
```

## license
Code released under [the MIT license](https://github.com/afeiship/next-trim-nl/blob/master/LICENSE.txt).

[version-image]: https://img.shields.io/npm/v/@jswork/next-trim-nl
[version-url]: https://npmjs.org/package/@jswork/next-trim-nl

[license-image]: https://img.shields.io/npm/l/@jswork/next-trim-nl
[license-url]: https://github.com/afeiship/next-trim-nl/blob/master/LICENSE.txt

[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-trim-nl
[size-url]: https://github.com/afeiship/next-trim-nl/blob/master/dist/next-trim-nl.min.js

[download-image]: https://img.shields.io/npm/dm/@jswork/next-trim-nl
[download-url]: https://www.npmjs.com/package/@jswork/next-trim-nl
npm package: @jswork/next-trim-repeated
Description: Trim repeat for next.
Author: afei
Latest version: 1.0.0

# next-trim-repeated
> Trim repeat for next.

[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]

## installation
```bash
npm install -S @jswork/next-trim-repeated
```

## usage
```js
import '@jswork/next-trim-repeated';

nx.trimRepeated('foo--bar---baz', '-');
//=> 'foo-bar-baz'

nx.trimRepeated('foo@#@#baz', '@#');
//=> 'foo@#baz'
```

## resources
- https://github.com/sindresorhus/trim-repeated

## license
Code released under [the MIT license](https://github.com/afeiship/next-trim-repeated/blob/master/LICENSE.txt).

[version-image]: https://img.shields.io/npm/v/@jswork/next-trim-repeated
[version-url]: https://npmjs.org/package/@jswork/next-trim-repeated

[license-image]: https://img.shields.io/npm/l/@jswork/next-trim-repeated
[license-url]: https://github.com/afeiship/next-trim-repeated/blob/master/LICENSE.txt

[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-trim-repeated
[size-url]: https://github.com/afeiship/next-trim-repeated/blob/master/dist/next-trim-repeated.min.js

[download-image]: https://img.shields.io/npm/dm/@jswork/next-trim-repeated
[download-url]: https://www.npmjs.com/package/@jswork/next-trim-repeated
npm package: @jswork/next-try-apply-get
Description: Try to get value from target(fn) or target(other data).
Author: afei
Latest version: 1.0.1

# next-try-apply-get
> Try to get value from target(fn) or target(other data).

[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]

## installation
```bash
npm install -S @jswork/next-try-apply-get
```

## usage
```js
import '@jswork/next-try-apply-get';

// 1. target is function
const target1 = (data) => {
  return { name: 'fei', ...data };
};

// 2. target is not a function
const target2 = { name: 'aric' };


// get the results
const res1 = nx.tryApplyGet(target1, [{ github: 'afeiship', hobby: 'coding' }]);
const res2 = nx.tryApplyGet(target2);

/*
// res1
{
  name: 'fei',
  github: 'afeiship',
  hobby: 'coding'
}

// res2
{ name: 'aric' }
*/
```

## license
Code released under [the MIT license](https://github.com/afeiship/next-try-apply-get/blob/master/LICENSE.txt).

[version-image]: https://img.shields.io/npm/v/@jswork/next-try-apply-get
[version-url]: https://npmjs.org/package/@jswork/next-try-apply-get

[license-image]: https://img.shields.io/npm/l/@jswork/next-try-apply-get
[license-url]: https://github.com/afeiship/next-try-apply-get/blob/master/LICENSE.txt

[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-try-apply-get
[size-url]: https://github.com/afeiship/next-try-apply-get/blob/master/dist/next-try-apply-get.min.js

[download-image]: https://img.shields.io/npm/dm/@jswork/next-try-apply-get
[download-url]: https://www.npmjs.com/package/@jswork/next-try-apply-get
npm package: @jswork/next-try-execute
Description: Try execute a method on context.
Author: afei
Latest version: 1.0.1

# next-try-execute
> Try execute a method on context.

[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]

## installation
```bash
npm install -S @jswork/next-try-execute
```

## usage
```js
import '@jswork/next-try-execute';

const someApi = {
  deleted: false,
  del: function (value) {
    this.deleted = value;
  },
  delete: function (value) {
    console.warn("delete is deprecated, use del instead");
    this.del(value);
  },
};

console.log(someApi.deleted); // false
nx.tryExecute(someApi, [], ["del", "delete"]);
console.log(someApi.deleted); // undefined
```

## license
Code released under [the MIT license](https://github.com/afeiship/next-try-execute/blob/master/LICENSE.txt).

[version-image]: https://img.shields.io/npm/v/@jswork/next-try-execute
[version-url]: https://npmjs.org/package/@jswork/next-try-execute

[license-image]: https://img.shields.io/npm/l/@jswork/next-try-execute
[license-url]: https://github.com/afeiship/next-try-execute/blob/master/LICENSE.txt

[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-try-execute
[size-url]: https://github.com/afeiship/next-try-execute/blob/master/dist/next-try-execute.min.js

[download-image]: https://img.shields.io/npm/dm/@jswork/next-try-execute
[download-url]: https://www.npmjs.com/package/@jswork/next-try-execute
npm package: @jswork/next-try-require
Description: Check if a dependency exists with webpack
Author: afei
Latest version: 1.0.3

# next-try-require
> Check if a dependency exists with webpack

[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]

## installation
```bash
npm install -S @jswork/next-try-require
```

## usage
```conf
└── medias
    ├── animation.tsx
    ├── audio.tsx
    ├── document.tsx
    ├── image.tsx
    ├── unknown.tsx
    └── video.tsx
```

```js
import '@jswork/next-try-require';

// .${context}${path}
// .${context}${defaults}
// @${context}${path}
// @${context}${defaults}

const MediaComponent = nx.tryRequire(
  mediaType,
  'unknown',
  { context: '/medias/'}
);

<MediaComponent model={model}/>
```

## license
Code released under [the MIT license](https://github.com/afeiship/next-try-require/blob/master/LICENSE.txt).

[version-image]: https://img.shields.io/npm/v/@jswork/next-try-require
[version-url]: https://npmjs.org/package/@jswork/next-try-require

[license-image]: https://img.shields.io/npm/l/@jswork/next-try-require
[license-url]: https://github.com/afeiship/next-try-require/blob/master/LICENSE.txt

[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-try-require
[size-url]: https://github.com/afeiship/next-try-require/blob/master/dist/next-try-require.min.js

[download-image]: https://img.shields.io/npm/dm/@jswork/next-try-require
[download-url]: https://www.npmjs.com/package/@jswork/next-try-require
npm package: @jswork/next-try-set
Description: Try to set value then return the value.
Author: afei
Latest version: 1.0.1

# next-try-set
> Try to set value then return the value.

[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]

## installation
```bash
npm install -S @jswork/next-try-set
```

## usage
```js
import '@jswork/next-try-set';

const obj = { name: 'fei', email: '1290657123@qq.com' };
const res1 = nx.trySet(obj, 'name', 'feizheng');
const res2 = nx.trySet(obj, 'github', 'afeiship');

// results:

// afei
// afeiship
```

## license
Code released under [the MIT license](https://github.com/afeiship/next-try-set/blob/master/LICENSE.txt).

[version-image]: https://img.shields.io/npm/v/@jswork/next-try-set
[version-url]: https://npmjs.org/package/@jswork/next-try-set

[license-image]: https://img.shields.io/npm/l/@jswork/next-try-set
[license-url]: https://github.com/afeiship/next-try-set/blob/master/LICENSE.txt

[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-try-set
[size-url]: https://github.com/afeiship/next-try-set/blob/master/dist/next-try-set.min.js

[download-image]: https://img.shields.io/npm/dm/@jswork/next-try-set
[download-url]: https://www.npmjs.com/package/@jswork/next-try-set
npm package: @jswork/next-try-set-get
Description: Try to set value then return the value.
Author: afei
Latest version: 1.0.0

# next-try-set-get
> Try to set value then return the value.

[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]

## installation
```bash
npm install -S @jswork/next-try-set-get
```

## usage
```js
import '@jswork/next-try-set-get';

const obj = { name: 'fei', email: '1290657123@qq.com' };
const res1 = nx.trySetGet(obj, 'name', 'feizheng');
const res2 = nx.trySetGet(obj, 'github', 'afeiship');

// results:

// afei
// afeiship
```

## license
Code released under [the MIT license](https://github.com/afeiship/next-try-set-get/blob/master/LICENSE.txt).

[version-image]: https://img.shields.io/npm/v/@jswork/next-try-set-get
[version-url]: https://npmjs.org/package/@jswork/next-try-set-get

[license-image]: https://img.shields.io/npm/l/@jswork/next-try-set-get
[license-url]: https://github.com/afeiship/next-try-set-get/blob/master/LICENSE.txt

[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-try-set-get
[size-url]: https://github.com/afeiship/next-try-set-get/blob/master/dist/next-try-set-get.min.js

[download-image]: https://img.shields.io/npm/dm/@jswork/next-try-set-get
[download-url]: https://www.npmjs.com/package/@jswork/next-try-set-get
npm package: @jswork/next-tx-abstract-cos
Description: Basic cos class for next.
Author: afei
Latest version: 1.0.0

# next-tx-abstract-cos
> Basic cos class for next.

[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]

## installation
```bash
npm install -S @jswork/next-tx-abstract-cos
```

## apis
| api          | params | description       |
| ------------ | ------ | ----------------- |
| parseOptions | -      | Normalize bucket. |


## license
Code released under [the MIT license](https://github.com/afeiship/next-tx-abstract-cos/blob/master/LICENSE.txt).

[version-image]: https://img.shields.io/npm/v/@jswork/next-tx-abstract-cos
[version-url]: https://npmjs.org/package/@jswork/next-tx-abstract-cos

[license-image]: https://img.shields.io/npm/l/@jswork/next-tx-abstract-cos
[license-url]: https://github.com/afeiship/next-tx-abstract-cos/blob/master/LICENSE.txt

[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-tx-abstract-cos
[size-url]: https://github.com/afeiship/next-tx-abstract-cos/blob/master/dist/next-tx-abstract-cos.min.js

[download-image]: https://img.shields.io/npm/dm/@jswork/next-tx-abstract-cos
[download-url]: https://www.npmjs.com/package/@jswork/next-tx-abstract-cos
npm package: @jswork/next-tx-cos-bucket
Description: Tencent cos bucket for next.
Author: afei
Latest version: 1.0.0

# next-tx-cos-bucket
> Tencent cos bucket for next.

[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]

## installation
```bash
npm install -S @jswork/next-tx-cos-bucket
```

## apis
| api     | params | description                  |
| ------- | ------ | ---------------------------- |
| get     | -      | Cos getBucket                |
| put     | -      | Cos putBucket                |
| del     | -      | Cos deleteBucket             |
| head    | -      | Cos headBucket               |
| gets    | -      | List cos buckets             |
| has     | -      | Extend method has bucket     |
| create  | -      | Extend method create bucket  |
| destroy | -      | Extend method destroy bucket |

## usage
```js
import NxTxCosBucket from '@jswork/next-tx-cos-bucket';

// code goes here:
```

## resources
- https://stackoverflow.com/questions/24586110/resolve-promises-one-after-another-i-e-in-sequence
- http://bluebirdjs.com/docs/api-reference.html
- https://cloud.tencent.com/document/product/436/36118


## license
Code released under [the MIT license](https://github.com/afeiship/next-tx-cos-bucket/blob/master/LICENSE.txt).

[version-image]: https://img.shields.io/npm/v/@jswork/next-tx-cos-bucket
[version-url]: https://npmjs.org/package/@jswork/next-tx-cos-bucket

[license-image]: https://img.shields.io/npm/l/@jswork/next-tx-cos-bucket
[license-url]: https://github.com/afeiship/next-tx-cos-bucket/blob/master/LICENSE.txt

[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-tx-cos-bucket
[size-url]: https://github.com/afeiship/next-tx-cos-bucket/blob/master/dist/next-tx-cos-bucket.min.js

[download-image]: https://img.shields.io/npm/dm/@jswork/next-tx-cos-bucket
[download-url]: https://www.npmjs.com/package/@jswork/next-tx-cos-bucket
npm package: @jswork/next-tx-cos-object
Description: Tencent cos object for next.
Author: afei
Latest version: 1.0.0

# next-tx-cos-object
> Tencent cos object for next.

[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]

## installation
```bash
npm install -S @jswork/next-tx-cos-object
```

## apis
| api   | params | description                        |
| ----- | ------ | ---------------------------------- |
| put   | -      | Upload file.                       |
| del   | -      | Delete file from bucket.           |
| dels  | -      | Delete multiple files from bucket. |
| empty | -      | Empty the bucket files.            |

## usage
```js
import NxTxCosObject from '@jswork/next-tx-cos-object';
```

## license
Code released under [the MIT license](https://github.com/afeiship/next-tx-cos-object/blob/master/LICENSE.txt).

[version-image]: https://img.shields.io/npm/v/@jswork/next-tx-cos-object
[version-url]: https://npmjs.org/package/@jswork/next-tx-cos-object

[license-image]: https://img.shields.io/npm/l/@jswork/next-tx-cos-object
[license-url]: https://github.com/afeiship/next-tx-cos-object/blob/master/LICENSE.txt

[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-tx-cos-object
[size-url]: https://github.com/afeiship/next-tx-cos-object/blob/master/dist/next-tx-cos-object.min.js

[download-image]: https://img.shields.io/npm/dm/@jswork/next-tx-cos-object
[download-url]: https://www.npmjs.com/package/@jswork/next-tx-cos-object
npm package: @jswork/next-tx-cos-regions
Description: Const for tencent cos regions.
Author: afei
Latest version: 1.0.0

# next-tx-cos-regions
> Const for tencent cos regions.

[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]

## installation
```bash
npm install -S @jswork/next-tx-cos-regions
```

## usage
```js
import '@jswork/next-tx-cos-regions';

nx.txCosRegions = [
  "ap-chengdu",
  "ap-chongqing",
  "ap-shanghai",
  "ap-chongqing",
  "ap-beijing",
  "ap-nanjing",
  "ap-guangzhou",
  "ap-shenzhen-fsi",
  "ap-shanghai-fsi",
  "ap-beijing-fsi"
];
```

## license
Code released under [the MIT license](https://github.com/afeiship/next-tx-cos-regions/blob/master/LICENSE.txt).

[version-image]: https://img.shields.io/npm/v/@jswork/next-tx-cos-regions
[version-url]: https://npmjs.org/package/@jswork/next-tx-cos-regions

[license-image]: https://img.shields.io/npm/l/@jswork/next-tx-cos-regions
[license-url]: https://github.com/afeiship/next-tx-cos-regions/blob/master/LICENSE.txt

[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-tx-cos-regions
[size-url]: https://github.com/afeiship/next-tx-cos-regions/blob/master/dist/next-tx-cos-regions.min.js

[download-image]: https://img.shields.io/npm/dm/@jswork/next-tx-cos-regions
[download-url]: https://www.npmjs.com/package/@jswork/next-tx-cos-regions
npm package: @jswork/next-tx-cos-sdk
Description: Tencent cos-nodejs-sdk wrapper.
Author: afei
Latest version: 1.0.0

# next-tx-cos-sdk
> Tencent cos-nodejs-sdk wrapper.

[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]

## installation
```bash
npm install -S @jswork/next-tx-cos-sdk
```

## apis
| api | params | description   |
| --- | ------ | ------------- |
| get | -      | desc balabala |
| put | -      | desc balabala |
| del | -      | desc balabala |

## usage
```js
import NxTxCosSdk from '@jswork/next-tx-cos-sdk';

const config = {
  id: 'xxx',
  SecretId: 'xxxx',
  SecretKey: 'xxxxx'
};

// https://console.cloud.tencent.com/cos5/bucket
const nxCos = new NxTxCosSdk(config);

// create
nxCos
  .get({
    Bucket: 'img3-1301823685',
    Region: 'ap-chengdu'
  })
  .then((res) => {
    console.log(res);
  });

// // get
// nxCos.get().then((res) => {
//   console.log(res);
// });

// //delete
// nxCos
//   .del({
//     Bucket: 'img1-xxx',
//     Region: 'ap-chengdu'
//   })
//   .catch((err) => {
//     console.log(err);
//   });
```

## resources
- https://github.com/sindresorhus/pify
- https://cloud.tencent.com/document/product/436/8629
- https://cloud.tencent.com/document/product/436/36119

## license
Code released under [the MIT license](https://github.com/afeiship/next-tx-cos-sdk/blob/master/LICENSE.txt).

[version-image]: https://img.shields.io/npm/v/@jswork/next-tx-cos-sdk
[version-url]: https://npmjs.org/package/@jswork/next-tx-cos-sdk

[license-image]: https://img.shields.io/npm/l/@jswork/next-tx-cos-sdk
[license-url]: https://github.com/afeiship/next-tx-cos-sdk/blob/master/LICENSE.txt

[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-tx-cos-sdk
[size-url]: https://github.com/afeiship/next-tx-cos-sdk/blob/master/dist/next-tx-cos-sdk.min.js

[download-image]: https://img.shields.io/npm/dm/@jswork/next-tx-cos-sdk
[download-url]: https://www.npmjs.com/package/@jswork/next-tx-cos-sdk
npm package: @jswork/next-underscored
Description: Converts a camelized or dasherized string into an underscored one.
Author: afei
Latest version: 1.0.1

# next-underscored
> Converts a camelized or dasherized string into an underscored one.

[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]

## installation
```bash
npm install -S @jswork/next-underscored
```

## usage
```js
import '@jswork/next-underscored';

nx.underscored('/api/v1/test');  // _api_v1_test
nx.underscored('api/v1/test');   // api_v1_test
```

## license
Code released under [the MIT license](https://github.com/afeiship/next-underscored/blob/master/LICENSE.txt).

[version-image]: https://img.shields.io/npm/v/@jswork/next-underscored
[version-url]: https://npmjs.org/package/@jswork/next-underscored

[license-image]: https://img.shields.io/npm/l/@jswork/next-underscored
[license-url]: https://github.com/afeiship/next-underscored/blob/master/LICENSE.txt

[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-underscored
[size-url]: https://github.com/afeiship/next-underscored/blob/master/dist/next-underscored.min.js

[download-image]: https://img.shields.io/npm/dm/@jswork/next-underscored
[download-url]: https://www.npmjs.com/package/@jswork/next-underscored
npm package: @jswork/next-uniapp-kits
Description: Uniapp kits based on next.
Author: afei
Latest version: 1.0.29

# next-uniapp-kits
> Uniapp kits based on next.

[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]

## installation
```bash
yarn add @jswork/next-uniapp-kits
```

## usage
```js
import '@jswork/next-uniapp-kits';

// init uniapp kits:
nx.UniappKits.create({ prefix: 'nuk' });
```

## license
Code released under [the MIT license](https://github.com/afeiship/next-uniapp-kits/blob/master/LICENSE.txt).

[version-image]: https://img.shields.io/npm/v/@jswork/next-uniapp-kits
[version-url]: https://npmjs.org/package/@jswork/next-uniapp-kits

[license-image]: https://img.shields.io/npm/l/@jswork/next-uniapp-kits
[license-url]: https://github.com/afeiship/next-uniapp-kits/blob/master/LICENSE.txt

[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-uniapp-kits
[size-url]: https://github.com/afeiship/next-uniapp-kits/blob/master/dist/next-uniapp-kits.min.js

[download-image]: https://img.shields.io/npm/dm/@jswork/next-uniapp-kits
[download-url]: https://www.npmjs.com/package/@jswork/next-uniapp-kits