open-index/open-npm huggingface dataset:
npm package: @jswork/next-unique
Description: Unique for array based on next.
Author: afei
Latest version: 1.0.2

# next-unique
> Unique for array 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-unique
```

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

// Simple array
const array1 = [1, 2, 4, 5, 6, 7, 1, 2];
nx.unique(array1);
// => [1, 2, 4, 5, 6, 7]

// Object array with key
const array2 = [
  { id: 1, value: 'value1' },
  { id: 2, value: 'value2' },
  { id: 1, value: 'value1' }
];
nx.unique(array2, 'id');
// => [{ id: 1, value: 'value1' }, { id: 2, value: 'value2' }]

// Deep object array
const array3 = [
  { user: { info: { id: 1 }, name: 'John' } },
  { user: { info: { id: 2 }, name: 'Jane' } },
  { user: { info: { id: 1 }, name: 'Bob' } }
];
nx.unique(array3, 'user.info.id');
// => [{ user: { info: { id: 1 }, name: 'John' } }, { user: { info: { id: 2 }, name: 'Jane' } }]
```

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

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

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

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

[download-image]: https://img.shields.io/npm/dm/@jswork/next-unique
[download-url]: https://www.npmjs.com/package/@jswork/next-unique
npm package: @jswork/next-update-state-value
Description: Update state value for react.
Author: afei
Latest version: 1.0.0

# next-update-state-value
> Update state value for react.

[![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-update-state-value
```

## usage
```js
import '@feizheng/next-update-state-value';

class ReactList extends React.Component{
  //...
  shouldComponentUpdate(inProps){
    nx.updateStateValue(this, 'value', { props: inProps });
    return true;
  }
  //...
}
```

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

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

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

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

[download-image]: https://img.shields.io/npm/dm/@jswork/next-update-state-value
[download-url]: https://www.npmjs.com/package/@jswork/next-update-state-value
npm package: @jswork/next-url-literal
Description: Wrapper for url-literal based on next.
Author: afei
Latest version: 1.0.1

# next-url-literal
> Wrapper for url-literal 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-url-literal
```

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

//DOCS here!
```

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

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

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

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

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

# next-url-operator
> Operator for url.

[![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-url-operator
```

## apis
| api            | params                      | description                        |
| -------------- | --------------------------- | ---------------------------------- |
| get            | (name: string)              | Get param by name.                 |
| gets           | -                           | Get all parmas.                    |
| set            | (name:string, value:string) | Set param value                    |
| sets           | (object:any)                | Update params value.               |
| update(public) | (object):string             | Update params and get the new url. |
| url(public)    | location.href               | The current url.                   |

## usage
```js
import NxUrlOperator from '@jswork/next-url-operator';

const op = new NxUrlOperator({ url: 'https://www.baidu.com?q=hello' });
const url = op.update({ q: 'world'});

//https://www.baidu.com?q=world

// static method
NxUrlOperator.update({
  q: 'hello'
});

// http://locahost?q=hello
```

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

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

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

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

[download-image]: https://img.shields.io/npm/dm/@jswork/next-url-operator
[download-url]: https://www.npmjs.com/package/@jswork/next-url-operator
npm package: @jswork/next-url-status
Description: Detect url status code for next.
Author: afei
Latest version: 1.0.3

# next-url-status
> Detect url status code 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-url-status
```

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

const url = 'https://www.baidu.com/index.html';

nx.urlStatus(url).then((res) => {
  console.log(res);
});

// failed : { code: -1 }
// success: { code: 200 }
```

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

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

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

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

[download-image]: https://img.shields.io/npm/dm/@jswork/next-url-status
[download-url]: https://www.npmjs.com/package/@jswork/next-url-status
npm package: @jswork/next-url-watcher
Description: Observe url changes for next.
Author: afei
Latest version: 1.0.5

# next-url-watcher
> Observe url changes 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-url-watcher
```

## apis
| api   | params                    | description         |
| ----- | ------------------------- | ------------------- |
| init  | ({ interval, immediate }) | Initial a nx class. |
| watch | callback                  | Watch url change.   |

## usage
```js
import NxUrlWatcher from '@jswork/next-url-watcher';

const wather = new NxUrlWatcher({ immediate: true });

wather.watch((old, current) => {
  console.log(old, current);
});
```

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

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

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

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

[download-image]: https://img.shields.io/npm/dm/@jswork/next-url-watcher
[download-url]: https://www.npmjs.com/package/@jswork/next-url-watcher
npm package: @jswork/next-url2fullpath
Description: Get url full pathname + others.
Author: afei
Latest version: 1.0.1

# next-url2fullpath
> Get url full pathname + others.

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

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

const url1 = 'https://github.com/afeiship/next-url2fullpath';
const url2 = 'https://confluence.demo.cn/pages/viewpage.action?pageId=25196240';
const url3 = 'https://owlcarousel2.github.io/OwlCarousel2/demos/urlhashnav.html#seven';

nx.url2fullpath(url1) // '/afeiship/next-url2fullpath'
nx.url2fullpath(url2) // '/pages/viewpage.action?pageId=25196240'
nx.url2fullpath(url3) // '/OwlCarousel2/demos/urlhashnav.html#seven'
```

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

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

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

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

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

# next-values
> Object values enhanced version.

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

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

const obj = {
  0: 'val0',
  1: 'val1',
  2: 'val2',
  3: 'val3',
  4: 'val4'
};

nx.values(obj); // ["0", "1", "2", "3", "4"]
```

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

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

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

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

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

# next-video
> Video 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-video
```

## apis
| api     | params | description                                        |
| ------- | ------ | -------------------------------------------------- |
| playing | -      | To tell if a <video> element is currently playing. |
| play    | -      | Play a video.                                      |
| pause   | -      | Pause a video.                                     |
| stop    | -      | Stop a video.                                      |

## usage
```js
import NxVideo from '@jswork/next-video';

// code goes here:
```

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

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

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

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

[download-image]: https://img.shields.io/npm/dm/@jswork/next-video
[download-url]: https://www.npmjs.com/package/@jswork/next-video
npm package: @jswork/next-wait-to-display
Description: Wait element display in document.
Author: afei
Latest version: 1.0.9

# next-wait-to-display
> Wait element display in document.

[![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-wait-to-display
```

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

// check target:
nx.waitToDisplay('#target', 1000, (el) => {
  console.log('has element!', el);
});
```

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

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

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

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

[download-image]: https://img.shields.io/npm/dm/@jswork/next-wait-to-display
[download-url]: https://www.npmjs.com/package/@jswork/next-wait-to-display
npm package: @jswork/next-wait-until
Description: Wait until for next.
Author: afei
Latest version: 1.0.5

# next-wait-until
> Wait until for 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-wait-until
```

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

nx.waitUntil({
  timeout: 1000,
  interval:200,
  condition: function () {
    return window.$;
  },
  change: function (status) {
    console.log('change', status);
  },
  done: function () {
    console.log('done');
  },
  fail: function () {
    console.log('fail/timeout');
  },
  always: function () {
    console.log('always');
  },
  complete: function () {
    console.log('complete');
  }
});
```

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

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

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

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

[download-image]: https://img.shields.io/npm/dm/@jswork/next-wait-until
[download-url]: https://www.npmjs.com/package/@jswork/next-wait-until
npm package: @jswork/next-web-toolkits
Description: Web toolkits for web based on next.
Author: afei
Latest version: 1.0.47

# next-web-toolkits
> Web toolkits for web 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-web-toolkits
```

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

//DOCS here!
```

## typings
```ts
/// <reference types="@jswork/event-mitt/index.d.ts" />
```

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

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

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

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

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

# next-webpack-alias
> Special alias for 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-webpack-alias
```

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

const res = nxWebpackAlias({
  react: 'react',
  'react-dom': ['@hot-loader/react-dom', true]
});

// result
{
  react: 'react',
  'react-dom': '@hot-loader/react-dom'
}

// if false
{
  react: 'react'
}
```

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

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

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

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

[download-image]: https://img.shields.io/npm/dm/@jswork/next-webpack-alias
[download-url]: https://www.npmjs.com/package/@jswork/next-webpack-alias
npm package: @jswork/next-weeks
Description: Weeks for next.
Author: afei
Latest version: 1.0.6

# next-weeks
> Weeks 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-weeks
```

## apis
| api | params        | description                                    |
| --- | ------------- | ---------------------------------------------- |
| at  | (index, type) | Get en/cn/emoji by index(0-6).                 |
| day | (day, type)   | Get en/cn/emoji by js date day.(1,2,3,4,5,6,0) |

## usage
```js
import NxWeeks from '@jswork/next-weeks';

// at:
NxWeeks.at(0, 'en')   // 'Monday'
NxWeeks.at(1, 'en')   // 'Tuesday'
NxWeeks.at(2, 'en')   // 'Wednesday'
NxWeeks.at(3, 'en')   // 'Thursday'
NxWeeks.at(4, 'en')   // 'Friday'
NxWeeks.at(5, 'en')   // 'Saturday'
NxWeeks.at(6, 'en')   // 'Sunday'


// day:
const d1 = new Date('2020-11-23');
const d2 = new Date('2020-11-24');
const d3 = new Date('2020-11-25');
const d4 = new Date('2020-11-26');
const d5 = new Date('2020-11-27');
const d6 = new Date('2020-11-28');
const d7 = new Date('2020-11-29');

// number or date instance
NxWeeks.day(d1.getDay(), 'cn')  // '一'
NxWeeks.day(d2.getDay(), 'cn')  // '二'
NxWeeks.day(d3.getDay(), 'cn')  // '三'
NxWeeks.day(d4, 'cn')  // '四'
NxWeeks.day(d5, 'cn')  // '五'
NxWeeks.day(d6, 'cn')  // '六'
NxWeeks.day(d7, 'cn')  // '日'
```

## emoji
- 周一(Mon) 😝
- 周二(Tue) 😪
- 周三(Wed) 😭
- 周四(Thur) 🤪
- 周五(Fri) 🤣
- 周六(Sat) 😎
- 周日(Sun) 😂

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

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

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

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

[download-image]: https://img.shields.io/npm/dm/@jswork/next-weeks
[download-url]: https://www.npmjs.com/package/@jswork/next-weeks
npm package: @jswork/next-weibo-oss
Description: Weibo oss for next api.
Author: afei
Latest version: 1.1.4

# next-weibo-oss
> Weibo oss for next api.

[![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-weibo-oss
```

## proxy_pass(node)
```js
app.use(
  '/weibo_api',
  proxy({
    target: 'https://picupload.weibo.com',
    changeOrigin: true,
    pathRewrite: { '^/weibo_api/': '/' }
  })
);
```

## proxy_pass(nginx)
```js
location /weibo_api {
    proxy_pass https://picupload.weibo.com;
    rewrite ^/weibo_api/(.*) /$1 break;
}
```

## apis
| api     | params   | description    |
| ------- | -------- | -------------- |
| upload  | file     | Upload a file. |
| uploads | fileList | Upload files.  |


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

const weiboOss = new nx.WeiboOss(token);

// single file:
weiboOss.upload(file);

// multiple files:
weiboOss.uploads(files);
```

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

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

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

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

[download-image]: https://img.shields.io/npm/dm/@jswork/next-weibo-oss
[download-url]: https://www.npmjs.com/package/@jswork/next-weibo-oss
npm package: @jswork/next-weibo-to-pics
Description: Sina weibo pics to array.
Author: afei
Latest version: 1.1.3

# next-weibo-to-pics
> Sina weibo response to array.

[![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-weibo-to-pics
```

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

const options = { baseURL: 'https://tva1.sinaimg.cn' };
const html = `<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <script type="text/javascript">document.domain="sina.com.cn";</script>
{"code":"A00006","data":{"count":1,"data":"eyJ1aWQiOjM2NjE4MzI4MDMsImFwcCI6Im1pbmlibG9nIiwiY291bnQiOjEsInRpbWUiOjE2MjA4ODIyNTQuNTMzLCJwaWNzIjp7InBpY18xIjp7IndpZHRoIjoyMDAsInNpemUiOjkzODksInJldCI6MSwiaGVpZ2h0IjoyMDAsIm5hbWUiOiJwaWNfMSIsInBpZCI6ImRhNDMyMjYzZ3kxZ3FncHUzdTBhbWoyMDVrMDVrM3loIn19fQ==","pics":{"pic_1":{"width":200,"size":9389,"ret":1,"height":200,"name":"pic_1","pid":"da432263gy1gqgpu3u0amj205k05k3yh"}}}}`;

const items = nx.weiboToPics(html, options);
/*
[
  {
    width: 200,
    size: 9389,
    ret: 1,
    height: 200,
    name: 'pic_1',
    pid: 'da432263gy1gqgpu3u0amj205k05k3yh',
    format: 'jpg',
    url: 'https://tva1.sinaimg.cn/large/da432263gy1gqgpu3u0amj205k05k3yh.jpg'
  }
]
*/
```

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

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

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

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

[download-image]: https://img.shields.io/npm/dm/@jswork/next-weibo-to-pics
[download-url]: https://www.npmjs.com/package/@jswork/next-weibo-to-pics
npm package: @jswork/next-weight-random
Description: Random has weight.
Author: afei
Latest version: 1.0.3

# next-weight-random
> Random has weight.

[![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-weight-random
```

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

const results = {};

const params1 = [ 0.75, 0.15, 0.1 ];
const params2 = {
  0: 0.75,
  1: 0.15,
  2: 0.1
};

const rand = nx.weightRandom(params1);

for (let i = 0; i < 1000; i++) {
  const val = rand1();
  results[val] = results[val] || [];
  results[val].push(true);
}

const total = results[0].length + results[1].length + results[2].length;

console.log(
  results[0].length / total,
  results[1].length / total,
  results[2].length / total
);

// Run multple times:
// 0.765 0.129 0.106
// 0.751 0.152 0.097
// 0.778 0.135 0.087
```

## resources
- https://stackoverflow.com/questions/8435183/generate-a-weighted-random-number

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

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

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

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

[download-image]: https://img.shields.io/npm/dm/@jswork/next-weight-random
[download-url]: https://www.npmjs.com/package/@jswork/next-weight-random
npm package: @jswork/next-where
Description: Get collection items from condition map.
Author: afei
Latest version: 1.0.0

# next-where
> Get collection items from condition 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-where
```

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

const data = [
  {
    id: 67,
    userId: 'EB1347950628',
    goods: {
      type: 1,
      country: 'Panama',
      year: 2014,
      keywords: 'tes',
      field: null,
      infoNumber: 262,
      title: '数据查询(Panama2014)',
      price: 0.02
    },
    title: '数据查询(Panama2014)'
  },
  {
    id: 68,
    userId: 'EB1347950628-2',
    goods: {
      type: 1,
      country: 'Panama',
      year: 2014,
      keywords: 'tes',
      field: null,
      infoNumber: 262,
      title: '数据查询(Panama2014)',
      price: 0.01
    },
    title: '数据查询(Panama2014)'
  },
  {
    id: 69,
    userId: 'EB1347950628',
    goods: {
      type: 2,
      country: 'Panama',
      year: 2015,
      keywords: 'test',
      field: null,
      infoNumber: 780,
      title: '数据查询(Panama2015)',
      price: 0.01
    },
    title: '数据查询(Panama2015)'
  }
];


// filter by map condition
nx.where(data, { id: 67 });

// result
[
  {
    id: 67,
    userId: 'EB1347950628',
    goods: {
      type: 1,
      country: 'Panama',
      year: 2014,
      keywords: 'tes',
      field: null,
      infoNumber: 262,
      title: '数据查询(Panama2014)',
      price: 0.02
    },
    title: '数据查询(Panama2014)'
  }
]
```

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

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

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

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

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

# next-yaml-configuration
> Yaml 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-yaml-configuration
```

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

## usage
```js
import NxYamlConfiguration from '@jswork/next-yaml-configuration';

// code goes here:
```

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

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

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

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

[download-image]: https://img.shields.io/npm/dm/@jswork/next-yaml-configuration
[download-url]: https://www.npmjs.com/package/@jswork/next-yaml-configuration
npm package: @jswork/next-zip-object
Description: Merge two array to an object.
Author: afei
Latest version: 1.0.1

# next-zip-object
> Merge two array to an object.

[![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-zip-object
```

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

const ar1 = ['a', 'b'];
const ar2 = [1, 2];
const res = nx.zipObject(ar1, ar2);

// { a: 1, b: 2 }
```

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

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

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

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

[download-image]: https://img.shields.io/npm/dm/@jswork/next-zip-object
[download-url]: https://www.npmjs.com/package/@jswork/next-zip-object
npm package: @jswork/node-down
Description: Download file use fetch.
Latest version: 1.0.2

# download
> Download file use fetch.

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

## installation
```shell
npm install @jswork/node-down
```

## usage
```js
import download from '@jswork/node-down';

await download({
  filename: 'test.jpg',
  cwd: '__tests__',
  url: 'https://tva1.sinaimg.cn/large/007S8ZIlgy1gexw87htqhj305k05k74o.jpg',
});
```

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

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

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

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

[download-image]: https://img.shields.io/npm/dm/@jswork/download
[download-url]: https://www.npmjs.com/package/@jswork/download
npm package: @jswork/node-fetch-html
Description: Fetch html with node-fetch.
Author: afei
Latest version: 1.0.2

# node-fetch-html
> Fetch html with node-fetch.

## installation
```shell
npm install -S @jswork/node-fetch-html
```

## usage
```js
import nfh from '@jswork/node-fetch-html';

nfh('http://www.baidu.com').then(($) => {
  console.log($('title').text());   // 百度
});
```
npm package: @jswork/node-gtc
Description: Github/gitlab trigger message node.
Latest version: 1.0.13

# node-gtc
> Github/gitlab trigger message node.

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

## installation
```shell
npm install @jswork/node-gtc
```

## usage
```js
import nodeGtc from '@jswork/node-gtc';

// usage goes here.
```

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

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

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

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

[download-image]: https://img.shields.io/npm/dm/@jswork/node-gtc
[download-url]: https://www.npmjs.com/package/@jswork/node-gtc
npm package: @jswork/node-http-schema
Description: Http schema for nodejs.
Latest version: 1.1.1

# node-http-schema
> Http schema for nodejs.

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

## installation
```shell
npm install @jswork/node-http-schema
```

## usage
```js
import nodeHttpSchema from '@jswork/node-http-schema';

// usage goes here.
```

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

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

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

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

[download-image]: https://img.shields.io/npm/dm/@jswork/node-http-schema
[download-url]: https://www.npmjs.com/package/@jswork/node-http-schema
npm package: @jswork/node-jianshu
Description: Node upload image sdk for jianshu.
Latest version: 1.0.3

# node-jianshu
> Node upload image sdk for jianshu.

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

## installation
```shell
npm install @jswork/node-jianshu
```

## usage
```js
import NodeJianshu from '@jswork/node-jianshu';

const res = await NodeJianshu.upload({ filepath: '__tests__/test1.png' });

// {
//   id: "2110669-478e3fdbe00b32d1",
//   format: "png",
//   height: 478,
//   url: "https://upload-images.jianshu.io/upload_images/2110669-478e3fdbe00b32d1.png",
//   width: 708,
// }
```

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

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

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

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

[download-image]: https://img.shields.io/npm/dm/@jswork/node-jianshu
[download-url]: https://www.npmjs.com/package/@jswork/node-jianshu
npm package: @jswork/node-weibo
Description: Node upload image sdk for weibo.
Latest version: 1.0.6

# node-weibo
> Node upload image sdk for weibo.

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

## installation
```shell
npm install @jswork/node-weibo
```

## usage
```js
import NodeWeibo from '@jswork/node-weibo'

const res = await NodeWeibo.upload({ filepath: '__tests__/test1.png' });

// {
//   code: "A00006",
//     format: "jpg",
//     width: 708,
//     size: 115526,
//     ret: 1,
//     height: 478,
//     name: "pic_1",
//     pid: "da432263gy1hs1pm96kcoj20jo0datbk",
// }
```


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

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

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

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

[download-image]: https://img.shields.io/npm/dm/@jswork/node-weibo
[download-url]: https://www.npmjs.com/package/@jswork/node-weibo
npm package: @jswork/noop
Description: Provide some noop value.
Author: feizheng
Latest version: 1.0.0

# noop
> Provide some noop value.

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

## installation
```shell
npm i @jswork/noop
```

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

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

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

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

[download-image]: https://img.shields.io/npm/dm/@jswork/noop
[download-url]: https://www.npmjs.com/package/@jswork/noop
npm package: @jswork/normalize-mina-options
Description: Normalize weapp request options.
Latest version: 1.0.5

# normalize-mina-options
> Normalize weapp request options.

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

## installation
```shell
npm install @jswork/normalize-mina-options
```

## usage
```js
import normalizeMinaOptions from '@jswork/normalize-mina-options';

// usage goes here.
```

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

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

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

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

[download-image]: https://img.shields.io/npm/dm/@jswork/normalize-mina-options
[download-url]: https://www.npmjs.com/package/@jswork/normalize-mina-options
npm package: @jswork/nprogress-interceptor
Description: Interceptor for nprogress.
Latest version: 1.0.3

# nprogress-interceptor
> NPorgress interceptor for nx.$api.

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

## installation
```shell
npm install @jswork/nprogress-interceptor
```

## usage
1. import css/js:
```html
<link rel="stylesheet" href="https://unpkg.com/nprogress@0.2.0/nprogress.css" />
<script src="https://unpkg.com/nprogress@0.2.0/nprogress.js"></script>
```

2. Use with `nx.$api`:
```js
import createLoaingIntercepotrs from '@jswork/nprogress-interceptor';

const loadingIntercepotrs = createLoaingIntercepotrs();

const opts = {
  adapter: 'Axios',
  slim: true,
  interceptors: [...interceptorRequest, ...interceptorResponse, ...loadingIntercepotrs],
  transformResponse(inResponse) {
    return inResponse.data;
  },
};

nx.$api = httpSchema(schema, opts);
```

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

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

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

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

[download-image]: https://img.shields.io/npm/dm/@jswork/i18n-helper
[download-url]: https://www.npmjs.com/package/@jswork/i18n-helper
npm package: @jswork/numlike-sort
Description: Sort for numeric.
Latest version: 1.0.2

# numlike-sort
> Sort for numeric.

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

## installation
```shell
npm install @jswork/numlike-sort
```

## usage
```js
import numlikeSort from '@jswork/numlike-sort';

// string of numbers:
numlikeSort(['1','3','2']);  // ['1','2','3']

// string of numbers with prefix:
numlikeSort(['a1','a3','a2']);  // ['a1','a2','a3']

// string of numbers with suffix:
numlikeSort(['1a','3a','2a']);  // ['1a','2a','3a']

// string of numbers with prefix and suffix:
numlikeSort(['a1a','a3a','a2a']);  // ['a1a','a2a','a3a']

// custome iterator:
numlikeSort(['pic1-2','pic1-3','pic1-1'], (item) => item.split('-')[1]);  
// ['pic1-1','pic1-2','pic1-3']
```

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

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

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

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

[download-image]: https://img.shields.io/npm/dm/@jswork/numlike-sort
[download-url]: https://www.npmjs.com/package/@jswork/numlike-sort
npm package: @jswork/nx-presets
Description: Presets for me.
Latest version: 1.0.1

# nx-presets
> Presets for me.

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

## installation
```shell
npm install @jswork/nx-presets
```

## usage
```js
import nxPresets from '@jswork/nx-presets';

// usage goes here.
```

## types
```ts
/// <reference types="@jswork/nx-presets/global.d.ts" />
```

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

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

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

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

[download-image]: https://img.shields.io/npm/dm/@jswork/nx-presets
[download-url]: https://www.npmjs.com/package/@jswork/nx-presets
npm package: @jswork/one2extra
Description: GGet one and extra.
Latest version: 1.0.1

# one2extra
> GGet one and extra.

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

## installation
```shell
npm install @jswork/one2extra
```

## usage
```js
import one2extra from '@jswork/one2extra';

const arr = [ 1, 2, 3 ];
const fn3 = (list)=> list.findIndex(item => item === 3);

one2extra(0, arr); // [1,[2,3]]
one2extra(1, arr); // [2,[1,3]]
one2extra(fn3, arr); // [3,[1,2]]
```

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

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

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

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

[download-image]: https://img.shields.io/npm/dm/@jswork/one2extra
[download-url]: https://www.npmjs.com/package/@jswork/one2extra
npm package: @jswork/package-cli
Description: Cli for package.json.
Author: afei
Latest version: 1.0.1

# package-cli
> Cli for package.json.

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

## installation
```shell
npm install @jswork/package-cli
```

## usage
~~~
Usage: pkg [options]

Options:
  -V, --version      output the version number
  -n, --npm-install  Get npm install script.
  -s, --shortname    Get short name.
  -h, --help         display help for command
~~~

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

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

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

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

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