# opiece-utils

> some common methods.

Latest version **0.0.8** (published 2018-01-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install opiece-utils
pnpm add opiece-utils
yarn add opiece-utils
bun add opiece-utils
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.8 |
| Published | 2018-01-30 |
| First published | 2017-09-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 4 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | lianruhe |
| Maintainers | shanks |
| Keywords | opiece, utils, request |

## Links

- npm: https://www.npmjs.com/package/opiece-utils
- Repository: https://github.com/OPiece/utils
- Homepage: https://github.com/OPiece/utils#readme
- Issues: https://github.com/OPiece/utils/issues
- npm.io page: https://npm.io/package/opiece-utils

## Dependencies (4)

- [lodash](https://npm.io/package/lodash.md) ^4.17.4
- [query-string](https://npm.io/package/query-string.md) ^5.0.0
- [whatwg-fetch](https://npm.io/package/whatwg-fetch.md) ^2.0.3
- [string-template](https://npm.io/package/string-template.md) ^1.0.0

## Recent versions

- 0.0.8 (latest) — 2018-01-30
- 0.0.7 — 2017-12-25
- 0.0.6 — 2017-11-17
- 0.0.5 — 2017-11-03
- 0.0.4 — 2017-10-24
- 0.0.3 — 2017-10-09
- 0.0.2 — 2017-09-14
- 0.0.1 — 2017-09-11

## README

# opiece-utils

> some common methods

## Install

```bash

$ npm install opiece-utils --save

```

## Usage

```js
// import xyz from opiece-utils/lib/xyz

// list2tree
import list2tree from 'opiece-utils/lib/list2tree'

// request
import request from 'opiece-utils/lib/request'
```

## example

```js
import request from 'opiece-utils/lib/request'

request(`${url}`, {
  body: {
    ...
  },
  interceptors: {
    request: [interceptor, ...],
    response: [interceptor, ...]
  }
}).then(data => {
  console.log(data)
}).catch(err => {
  console.error(err)
})
```

## LICENSE

[MIT](https://github.com/OPiece/utils/blob/master/LICENSE)

---
_Source: https://npm.io/package/opiece-utils · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
