open-index/open-npm huggingface dataset:
npm package: @jswork/next-is-block-element
Description: Check element if is block element.
Author: afei
Latest version: 1.0.0

# next-is-block-element
> Check element if is block 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-is-block-element
```

## usage
```js
import '@jswork/next-is-block-element';

const el = document.createElement('div');
nx.isBlockElement(el);    // false
```

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

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

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

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

[download-image]: https://img.shields.io/npm/dm/@jswork/next-is-block-element
[download-url]: https://www.npmjs.com/package/@jswork/next-is-block-element
npm package: @jswork/next-is-empty
Description: Check whether a value is empty.
Author: afei
Latest version: 1.0.0

# next-is-empty
> Check whether a value is empty.

[![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-is-empty
```

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

nx.isEmpty({})  // true
nx.isEmpty('')  // true
nx.isEmpty(true)  // false
```

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

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

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

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

[download-image]: https://img.shields.io/npm/dm/@jswork/next-is-empty
[download-url]: https://www.npmjs.com/package/@jswork/next-is-empty
npm package: @jswork/next-is-empty-fields
Description: Detect is an empty form values.
Author: afei
Latest version: 1.0.3

# next-is-empty-fields
> Detect is an empty form values.

[![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-is-empty-fields
```

## usage
```js
import '@jswork/next-is-empty-fields';

const values = {
  name: '',
  email: '',
  phone: '',
};

nx.isEmptyFields(values); // true
```

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

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

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

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

[download-image]: https://img.shields.io/npm/dm/@jswork/next-is-empty-fields
[download-url]: https://www.npmjs.com/package/@jswork/next-is-empty-fields
npm package: @jswork/next-is-empty-object
Description: Check if is emptyObject for next.
Author: afei
Latest version: 1.0.4

# next-is-empty-object
> Check if is emptyObject 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-is-empty-object
```

## usage
```js
import '@jswork/next-is-empty-object';

nx.isEmptyObject(null);   // false
```

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

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

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

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

[download-image]: https://img.shields.io/npm/dm/@jswork/next-is-empty-object
[download-url]: https://www.npmjs.com/package/@jswork/next-is-empty-object
npm package: @jswork/next-is-equal-diff
Description: Check a list is equal difference.
Author: afei
Latest version: 1.0.1

# next-is-equal-diff
> Check a list is equal difference.

[![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-is-equal-diff
```

## usage
```js
import '@jswork/next-is-equal-diff';

nx.isEqualDiff([1,2,3]);        // true
nx.isEqualDiff([1,3,5], 2);     // true
nx.isEqualDiff([5, 3, 1], -2);  // true
```

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

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

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

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

[download-image]: https://img.shields.io/npm/dm/@jswork/next-is-equal-diff
[download-url]: https://www.npmjs.com/package/@jswork/next-is-equal-diff
npm package: @jswork/next-is-in-iframe
Description: Identify if a webpage is being loaded inside an iframe or directly into the browser window.
Author: afei
Latest version: 1.0.2

# next-is-in-iframe
> Identify if a webpage is being loaded inside an iframe or directly into the browser window.

[![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-is-in-iframe
```

## usage
```js
import '@jswork/next-is-in-iframe';

nx.isInIframe(); // true or false
```

## resources
- https://stackoverflow.com/questions/326069/how-to-identify-if-a-webpage-is-being-loaded-inside-an-iframe-or-directly-into-t

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

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

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

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

[download-image]: https://img.shields.io/npm/dm/@jswork/next-is-in-iframe
[download-url]: https://www.npmjs.com/package/@jswork/next-is-in-iframe
npm package: @jswork/next-is-nil
Description: Is null/undefined for next.
Author: afei
Latest version: 1.0.0

# next-is-nil
> Is null/undefined 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-is-nil
```

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

//DOCS here!
```

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

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

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

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

[download-image]: https://img.shields.io/npm/dm/@jswork/next-is-nil
[download-url]: https://www.npmjs.com/package/@jswork/next-is-nil
npm package: @jswork/next-is-phone
Description: Regexp for is phone.
Author: afei
Latest version: 1.0.0

# next-is-phone
> Regexp for is phone.

[![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-is-phone
```

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

nx.isPhone('13200000000'); // true
nx.isPhone('4008008080');  // false
```

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

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

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

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

[download-image]: https://img.shields.io/npm/dm/@jswork/next-is-phone
[download-url]: https://www.npmjs.com/package/@jswork/next-is-phone
npm package: @jswork/next-is-plain-object
Description: A isPlainObject implement.
Author: afei
Latest version: 1.0.4

# next-is-plain-object
> A isPlainObject 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-is-plain-object
```

## usage
```js
import '@jswork/next-is-plain-object';

const v1 = { name: 'fei' };
nx.isPlainObject(v1);   //true
```

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

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

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

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

[download-image]: https://img.shields.io/npm/dm/@jswork/next-is-plain-object
[download-url]: https://www.npmjs.com/package/@jswork/next-is-plain-object
npm package: @jswork/next-is-promise
Description: Test whether an object looks like a promises-a+ promise.
Author: afei
Latest version: 1.0.0

# next-is-promise
> Test whether an object looks like a promises-a+ promise.

[![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-is-promise
```

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

const fn1 = () => {
  return new Promise(() => {
    setTimeout(() => {
      resolve('done');
    }, 1000);
  });
};

nx.isPromise(fn1());    // true
```

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

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

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

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

[download-image]: https://img.shields.io/npm/dm/@jswork/next-is-promise
[download-url]: https://www.npmjs.com/package/@jswork/next-is-promise
npm package: @jswork/next-is-reachable
Description: Check if port reachable.
Author: afei
Latest version: 1.0.0

# next-is-reachable
> Check if port reachable.

[![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-is-reachable
```

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

nx.isReachable({ port: 80, host: 'www.baidu.com' }).then((res) => {
  // true
});
```

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

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

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

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

[download-image]: https://img.shields.io/npm/dm/@jswork/next-is-reachable
[download-url]: https://www.npmjs.com/package/@jswork/next-is-reachable
npm package: @jswork/next-is-valid-lrc
Description: Detete string is a valid lrc.
Author: afei
Latest version: 1.0.1

# next-is-valid-lrc
> Detete string is a valid lrc.

[![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-is-valid-lrc
```

## usage
```js
import '@jswork/next-is-valid-lrc';

const str1 = '[ti:]'
const str2 = `[00:04.06]Hi, I'm Mocky. 嗨，我是Mocky。`;

nx.isValidLrc(str1);    // false
nx.isValidLrc(str2);    // true
```

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

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

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

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

[download-image]: https://img.shields.io/npm/dm/@jswork/next-is-valid-lrc
[download-url]: https://www.npmjs.com/package/@jswork/next-is-valid-lrc
npm package: @jswork/next-is-valid-proxy
Description: Check if proxy is valid.
Author: afei
Latest version: 1.0.0

# next-is-valid-proxy
> Check if proxy is valid.

[![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-is-valid-proxy
```

## usage
```js
import '@jswork/next-is-valid-proxy';

// check the ip
nx.isValidProxy('http://18.236.173.172:8888').then(res=>{
  console.log(res); // true/false
});
```

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

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

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

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

[download-image]: https://img.shields.io/npm/dm/@jswork/next-is-valid-proxy
[download-url]: https://www.npmjs.com/package/@jswork/next-is-valid-proxy
npm package: @jswork/next-is-wk-webview
Description: Detect if is wkwebview.
Author: afei
Latest version: 1.0.0

# next-is-wk-webview
> Detect if is wkwebview.

[![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-is-wk-webview
```

## usage
```js
import '@jswork/next-is-wk-webview';

nx.isWkWebview(); // true/false
```

## resources
- https://stackoverflow.com/questions/28795476/detect-if-page-is-loaded-inside-wkwebview-in-javascript


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

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

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

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

[download-image]: https://img.shields.io/npm/dm/@jswork/next-is-wk-webview
[download-url]: https://www.npmjs.com/package/@jswork/next-is-wk-webview
npm package: @jswork/next-it
Description: Iterator generator for next.
Author: afei
Latest version: 1.0.0

# next-it
> Iterator generator 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-it
```

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

const arr = [0, 1, true, false, null, '', undefined];
const filter1 = arr.filter(nx.it('@'));
const filter2 = arr.filter(nx.it('!@'));
// filter1: [ 1, true ];
// filter2: [0, false, null, '', undefined];

const data = [
  {
    "url": "https://demo.com/api/static/images/f7128c5454ef48d431315169ac1c8faf.png",
    "file": {
      "path": "https://demo.com/api/static/images/f7128c5454ef48d431315169ac1c8faf.png",
      "size": 0
    }
  },
  {
    "url": "https://demo.com/api/static/images/8ea7935faede52aa3891436fa5f0dd68.png",
    "file": {
      "path": "https://demo.com/api/static/images/8ea7935faede52aa3891436fa5f0dd68.png",
      "size": 0
    }
  },
  {
    "url": "http://tmp/rYOV8lwCrW6885969266efbb54c322548e83ddd399e0.png",
    "file": {
      "path": "http://tmp/rYOV8lwCrW6885969266efbb54c322548e83ddd399e0.png",
      "size": 792
    }
  }
]

const filter1 = data.filter(nx.it('file.size'));
const filter2 = data.filter(nx.it('!file.size'));
// get size:0 or size!=0 values.
```

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

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

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

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

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

# next-jjencode
> jjencode 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-jjencode
```

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

const res = nx.jjencode('$', `console.log("Hello, JavaScript" )`, true);

// result
'\"+'+",$=~[];$={___:++$,$$$$:(![]+"")[$],__$:++$,$_$_:(![]+"")[$],_$_:++$,$_$$:({}+"")[$],$$_$:($[$]+"")[$],_$$:++$,$$$_:(!""+"")[$],$__:++$,$_$:++$,$$__:({}+"")[$],$$_:++$,$$$:++$,$___:++....
```

## resources
- http://utf-8.jp/public/jjencode.html

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

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

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

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

[download-image]: https://img.shields.io/npm/dm/@jswork/next-jjencode
[download-url]: https://www.npmjs.com/package/@jswork/next-jjencode
npm package: @jswork/next-json
Description: Better json parse/stringify for JSON.
Author: afei
Latest version: 1.0.6

# next-json
> Better json parse/stringify for JSON.

[![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-json
```

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

const obj = {
  gihtub: 'afeiship',
  homepage:'https://js.work'
};

nx.stringify(obj);

// '{"gihtub":"afeiship","homepage":"https://js.work"}'
```

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

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

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

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

[download-image]: https://img.shields.io/npm/dm/@jswork/next-json
[download-url]: https://www.npmjs.com/package/@jswork/next-json
npm package: @jswork/next-json-configuration
Description: Json configuration for next.
Author: afei
Latest version: 1.0.2

# next-json-configuration
> Json configuration 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-json-configuration
```

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

## usage
```js
import NxJsonConfiguration from '@jswork/next-json-configuration';
import path from 'path';

const conf = new NxJsonConfiguration({ path: path.join(process.cwd(), 'package.json') });
conf.set('version', '1.0.1');
conf.get('version');  // 1.0.1
conf.save();
```

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

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

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

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

[download-image]: https://img.shields.io/npm/dm/@jswork/next-json-configuration
[download-url]: https://www.npmjs.com/package/@jswork/next-json-configuration
npm package: @jswork/next-json2base64
Description: Json and base64 encode/decode.
Author: afei
Latest version: 1.0.9

# next-json2base64
> Json and base64 encode/decode.

[![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-json2base64
```

## apis
| api       | params   | description                                               |
|-----------|----------|-----------------------------------------------------------|
| base64    | -        | js-base64 reference.                                      |
| decode    | (string) | Transform base64 string to js object.                     |
| decodeURI | (string) | Transform base64 string to js object when is in url case. |
| encode    | (object) | Transform object to base64 string.                        |
| encodeURI | (object) | Transform object to base64 string when is in url case.    |

## usage
```js
import NxJson2base64 from '@jswork/next-json2base64';

// code goes here:
NxJson2base64.decode('eyJuYW1lIjoiYWZlaSIsImFnZSI6MTA4fQ==');
// { name: 'afei', age: 108 }
```

## resources
- https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/encodeURIComponent

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

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

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

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

[download-image]: https://img.shields.io/npm/dm/@jswork/next-json2base64
[download-url]: https://www.npmjs.com/package/@jswork/next-json2base64
npm package: @jswork/next-kebab-case
Description: Kebab case for next.
Author: afei
Latest version: 1.0.4

# next-kebab-case
> Kebab case 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-kebab-case
```

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

const res = nx.kebabCase('raDiuScHan_ge d');

// ra-diu-sc-han-ge-d
```

## resources
- https://gist.github.com/tdukart/b87afb278c41245741ae7a0c355a0a0b
- https://gist.github.com/thevangelist/8ff91bac947018c9f3bfaad6487fa149

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

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

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

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

[download-image]: https://img.shields.io/npm/dm/@jswork/next-kebab-case
[download-url]: https://www.npmjs.com/package/@jswork/next-kebab-case
npm package: @jswork/next-key-map
Description: Recursion replace object key use map.
Author: afei
Latest version: 1.0.11

# next-key-map
> Recursion replace object key use map.

[![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-key-map
```

## apis
| API    | TYPE                    | DESCRIPTION          |
|--------|-------------------------|----------------------|
| keyMap | { sourceKey: targetKey} | Map source to target |

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

const data = {
  key: '1',
  name: 'Zhong Hua Men',
  desc: 'lsjdflsjdflsdjflsjdf'
};

const rs = nx.keyMap( data,{
  key:'id',
  name:'value',
  desc:'description'
});

// or use id:value replacer
const rs2 = nx.keyMap(data, 'key:id; name:value; desc:description');

// results:
const data = {
  id: '1',
  value: 'Zhong Hua Men',
  description: 'lsjdflsjdflsdjflsjdf'
};
```

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

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

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

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

[download-image]: https://img.shields.io/npm/dm/@jswork/next-key-map
[download-url]: https://www.npmjs.com/package/@jswork/next-key-map
npm package: @jswork/next-list2kv
Description: Transform pure list to key value pairs.
Author: afei
Latest version: 1.0.0

# next-list2kv
> Transform pure list to key value pairs.

[![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-list2kv
```

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

const list1 = ['a', 'b', 'c'];
const res1 = nx.list2kv(list1);
const res2 = nx.list2kv(list1, { indexable: true });
const res3 = nx.list2kv(list1, { label: 'title', id: 'value' });


/*
// res1
[
  { label: 'a', value: 'a' },
  { label: 'b', value: 'b' },
  { label: 'c', value: 'c' }
]

// res2
[
  { label: 'a', value: 0 },
  { label: 'b', value: 1 },
  { label: 'c', value: 2 }
]

// res3
[
  { title: 'a', value: 'a' },
  { title: 'b', value: 'b' },
  { title: 'c', value: 'c' }
]
*/
```

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

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

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

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

[download-image]: https://img.shields.io/npm/dm/@jswork/next-list2kv
[download-url]: https://www.npmjs.com/package/@jswork/next-list2kv
npm package: @jswork/next-list2map
Description: Transform list to map.
Author: afei
Latest version: 1.0.0

# next-list2map
> Transform list to map.

[![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-list2map
```

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

const items = [
  { id: 1, name: 'xiaoming' },
  { id: 2, name: 'lihua' },
  { id: 3, name: 'hanmeimei' }
];

const result = nx.list2map(items, {
  key: 'id',
  value: function(i, val) {
    return val;
  }
});

// result:
{
  '1': { id: 1, name: 'xiaoming' },
  '2': { id: 2, name: 'lihua' },
  '3': { id: 3, name: 'hanmeimei' }
}
```

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

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

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

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

[download-image]: https://img.shields.io/npm/dm/@jswork/next-list2map
[download-url]: https://www.npmjs.com/package/@jswork/next-list2map
npm package: @jswork/next-literal-tmpl
Description: Literals template engine like es6.
Author: afei
Latest version: 1.0.2

# next-literal-tmpl
> Literals template engine like es6.

[![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-literal-tmpl
```

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

const str = '${GITHUB_API_TOKEN} - ${afei}';
const ctx = {
  GITHUB_API_TOKEN: 'xxx-yyy-zzz',
  afei: 'zhengfei'
};
nx.literalTmpl(str, ctx);

// 'xxx-yyy-zzz - zhengfei'
```

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

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

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

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

[download-image]: https://img.shields.io/npm/dm/@jswork/next-literal-tmpl
[download-url]: https://www.npmjs.com/package/@jswork/next-literal-tmpl
npm package: @jswork/next-local-expires
Description: LocalStorage which can be set expires.
Author: afei
Latest version: 1.0.0

# next-local-expires
> LocalStorage which can be set expires.

[![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-local-expires
```

## apis
| api | params                    | description                                         |
| --- | ------------------------- | --------------------------------------------------- |
| set | inKey, inValue, inExpires | set value with expires (ms)                         |
| get | -                         | get the right value if is in time, or will get null |

## usage
```js
import NxLocalExpires from '@feizheng/next-local-expires';

// code goes here:
const store = new NxLocalExpires();
store.set('login',{ token: 'YWRmajEyMzMx' }, 5*24*60*60*1000)
store.get('login');
// { token: 'YWRmajEyMzMx' }
```

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

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

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

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

[download-image]: https://img.shields.io/npm/dm/@jswork/next-local-expires
[download-url]: https://www.npmjs.com/package/@jswork/next-local-expires
npm package: @jswork/next-local-forage
Description: LocalForage for next.
Author: afei
Latest version: 1.0.0

# next-local-forage
> LocalForage 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-local-forage
```

## apis
| api    | params | description             |
| ------ | ------ | ----------------------- |
| get    | -      | Get item data.          |
| gets   | -      | Get items.              |
| set    | -      | Set value.              |
| sets   | -      | Set values.             |
| del    | -      | Delete a value by key.  |
| dels   | -      | Deleta multiple values. |
| clear  | -      | Clear the store.        |
| config | -      | Config the store.       |

## usage
```js
import NxLocalForage from '@jswork/next-local-forage';
```

## resources
- https://localforage.docschina.org/

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

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

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

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

[download-image]: https://img.shields.io/npm/dm/@jswork/next-local-forage
[download-url]: https://www.npmjs.com/package/@jswork/next-local-forage
npm package: @jswork/next-local-keep-files
Description: Local keep files for next.
Author: afei
Latest version: 1.0.1

# next-local-keep-files
> Local keep files 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-local-keep-files
```

## usage
```js
import '@jswork/next-local-keep-files';

nx.localKeepFiles({
  keep: 5, 
  files: globby.sync('__tests__/files/*.txt')
});
```

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

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

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

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

[download-image]: https://img.shields.io/npm/dm/@jswork/next-local-keep-files
[download-url]: https://www.npmjs.com/package/@jswork/next-local-keep-files
npm package: @jswork/next-log
Description: Logger for next.
Author: afei
Latest version: 1.0.2

# next-log
> Logger 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-log
```

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

nx.log('hello');
// [23:22:20] hello
```

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

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

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

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

[download-image]: https://img.shields.io/npm/dm/@jswork/next-log
[download-url]: https://www.npmjs.com/package/@jswork/next-log
npm package: @jswork/next-loop-execute
Description: Loop execute for next.
Author: afei
Latest version: 1.0.8

# next-loop-execute
> Loop execute 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-loop-execute
```

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

const fetchApi = function ({ count }) {
  return fetch('https://api.github.com/users/afeiship').then(res=>res.json());
}

// loop 3 times:
nx.loopExecute({
  interval: 200,
  timeout: 10 * 1000,
  interrupt: (res)=>{
    return manualInterruptFlag;
  },
  callback: (data) => {
    console.log(data);
    return fetch('https://api.github.com/users/afeiship').then((res) => res.json());
  },
  done: (res) => {
    return res.data.status === 'FINISHED';
  }
}).then((res) => {
  console.log('DONE:', res);
})
```

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

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

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

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

[download-image]: https://img.shields.io/npm/dm/@jswork/next-loop-execute
[download-url]: https://www.npmjs.com/package/@jswork/next-loop-execute
npm package: @jswork/next-lrc
Description: A javascript lrc parser.
Author: afei
Latest version: 1.0.9

# next-lrc
> A javascript lrc parser.

[![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-lrc
```

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

const str = fs.readFileSync('./__tests__/E203.lrc').toString();
nx.lrc(str);
/*
[
  {
    clock: '00:00.800',
    timestamp: 800,
    value: '--- lesson 1  A private conversation 私人谈话',
    times: [ '00:00.800', '00:06.200' ],
    duration: 5400
  },
  {
    clock: '00:06.200',
    timestamp: 6200,
    value: '--- First listen and then answer the question.^听录音，然后回答以下问题。',
    times: [ '00:06.200', '00:12.120' ],
    duration: 5920
  },
  {
    clock: '00:12.120',
    timestamp: 12120,
    value: '--- Why did the writer complain to the people behind him?',
    times: [ '00:12.120', '00:19.840' ],
    duration: 7720
  },
  // ....
*/
```

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

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

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

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

[download-image]: https://img.shields.io/npm/dm/@jswork/next-lrc
[download-url]: https://www.npmjs.com/package/@jswork/next-lrc
npm package: @jswork/next-lru-cache-engine
Description: LRU cache engine for next.
Author: afei
Latest version: 1.0.4

# next-lru-cache-engine
> LRU cache engine 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-lru-cache-engine
```

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

## usage
```js
import NxLruCacheEngine from '@jswork/next-lru-cache-engine';

// code goes here:
```

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

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

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

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

[download-image]: https://img.shields.io/npm/dm/@jswork/next-lru-cache-engine
[download-url]: https://www.npmjs.com/package/@jswork/next-lru-cache-engine
npm package: @jswork/next-make-cancelable
Description: Make promise cancelable for next.
Author: afei
Latest version: 1.0.0

# next-make-cancelable
> Make promise cancelable 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-make-cancelable
```

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

const somePromise = new Promise(r => setTimeout(r, 1000));
const cancelable = nx.makeCancelable(somePromise);

cancelable
  .promise
  .then(() => console.log('resolved'))
  .catch(({isCanceled, ...error}) => console.log('isCanceled', isCanceled));

// Cancel promise
cancelable.cancel();
```

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

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

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

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

[download-image]: https://img.shields.io/npm/dm/@jswork/next-make-cancelable
[download-url]: https://www.npmjs.com/package/@jswork/next-make-cancelable
npm package: @jswork/next-map-map
Description: Map map method for next.
Author: afei
Latest version: 1.0.2

# next-map-map
> Map map method 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-map-map
```

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

const obj1 = {
  name: ['fei'],
  age: [100]
};

const rs1 = nx.mapMap(obj1, function (key, value) {
  return {
    key: key,
    value: value[0]
  }
});

// { name:'fei', age: 100 }
```

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

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

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

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

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